Exemple #1
0
 /**
  * Drop the test database between tests.
  *
  * @since 2.0
  */
 protected function tearDown()
 {
     $config = ConfigProvider::getInstance();
     foreach ($this->getActiveRecordProviders() as $provider) {
         $config->set('db.provider.name', $provider[0]);
         ActiveRecord::dropDatabase();
         ActiveRecord::disconnect();
     }
 }
 /**
  * Tear down tests.
  *
  * @since 1.2.3
  */
 protected function tearDown()
 {
     unset($this->article);
     ActiveRecord::dropDatabase();
     ActiveRecord::disconnect();
 }