/** * 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; }
/** * 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; }