public function testDropTableIfExists() { $blueprint = new Blueprint('users'); $blueprint->dropIfExists(); $statements = $blueprint->toSql($this->getGrammar()); $this->assertEquals(1, count($statements)); $this->assertEquals('drop table if exists `users`', $statements[0]); }
/** * Deletes the table. * * @param \Illuminate\Database\Schema\Blueprint $table */ public function delete(Blueprint $table) { $table->dropIfExists(); }