Esempio n. 1
0
 /**
  * Assert a condition is true alias.
  *
  * @param bool $condition
  * @param string|null $message
  * @return $this
  */
 protected function assertTrue($condition, $message = null)
 {
     $this->context->assertTrue($condition, $message);
     return $this;
 }
Esempio n. 2
0
 /**
  * Assert that the table exists in the database.
  *
  * @return $this
  */
 public function exists()
 {
     $this->context->assertTrue(Schema::hasTable($this->name), "The table {$this->name} does not exist.");
     return $this;
 }