public function tearDown()
 {
     TestModel::deleteTable();
     TestModelExtendedTypes::deleteTable();
     TestModelWithNameLabel::deleteTable();
     TestModelSortable::deleteTable();
     TestModelSearchOnly::deleteTable();
 }
Ejemplo n.º 2
0
 public function setUp()
 {
     $this->base = new \Thru\ActiveRecord\DatabaseLayer\Sql\Base();
     $this->mysql = new \Thru\ActiveRecord\DatabaseLayer\Sql\Mysql();
     TestModel::deleteTable();
     TestModelExtendedTypes::deleteTable();
     TestModelWithNameLabel::deleteTable();
     TestModelSortable::deleteTable();
     TestModelSearchOnly::deleteTable();
 }
Ejemplo n.º 3
0
 public function testCreateTableOnSearch()
 {
     $this->assertEquals(0, TestModelSearchOnly::search()->count());
     TestModelSearchOnly::deleteTable();
 }