Esempio n. 1
0
 public function testDropTable()
 {
     //Build the table and database as needed, load test user
     DinklyBuilder::buildTable('unit_test', 'TestUser', null, false);
     DinklyBuilder::loadAllFixtures('unit_test', false);
     //Test that we have a hyrdrated user model to work with
     $user = new TestUser();
     $this->assertTrue($user->init(1));
     //Test the successful removal of the table
     $this->assertTrue(DinklyBuilder::dropTable('unit_test', 'TestUser'));
 }