public function testDropTable()
 {
     $blueprint = new Blueprint('users');
     $blueprint->drop();
     $statements = $blueprint->toSql($this->getGrammar());
     $this->assertEquals(1, count($statements));
     $this->assertEquals('drop table "users"', $statements[0]);
 }
Пример #2
0
 /**
  * Deletes the table.
  *
  * @param \Illuminate\Database\Schema\Blueprint $table
  */
 public function delete(Blueprint $table)
 {
     $table->drop();
 }