Esempio n. 1
0
 public function testDrop()
 {
     $schema = new Schema($this->db, 'myschema');
     $schema->create();
     $table = $schema->createTable('blah', self::$columns, false);
     $sequences = $schema->getSequences();
     $sequences->create();
     $this->assertNotEmpty($schema->listTables());
     $this->assertTrue($sequences->exists());
     $schema->drop();
     $this->assertFalse($sequences->exists());
     $this->assertEmpty($schema->listTables());
 }