Ejemplo n.º 1
0
 public function tearDown()
 {
     $this->fixtures->dropTables(Database::getConnection());
     parent::tearDown();
 }
Ejemplo n.º 2
0
 protected function tearDown()
 {
     db_drop_table('key_value_expire');
     db_drop_table('semaphore');
     parent::tearDown();
 }
Ejemplo n.º 3
0
 /**
  * {@inheritdoc}
  */
 protected function tearDown()
 {
     if ($this->kernel instanceof DrupalKernel) {
         $this->kernel->shutdown();
     }
     // Before tearing down the test environment, ensure that no stream wrapper
     // of this test leaks into the parent environment. Unlike all other global
     // state variables in Drupal, stream wrappers are a global state construct
     // of PHP core, which has to be maintained manually.
     // @todo Move StreamWrapper management into DrupalKernel.
     // @see https://drupal.org/node/2028109
     foreach ($this->streamWrappers as $scheme => $type) {
         $this->unregisterStreamWrapper($scheme, $type);
     }
     parent::tearDown();
 }