Пример #1
0
 public function tearDown()
 {
     // Make sure the #__foobar_example table does not exist after running the tests
     $db = static::$container->db;
     $db->dropTable('#__foobar_example', true);
     parent::tearDown();
 }
Пример #2
0
 protected function tearDown()
 {
     parent::tearDown();
     if (isset($_SERVER['HTTP_HOST'])) {
         unset($_SERVER['HTTP_HOST']);
     }
 }
Пример #3
0
 protected function tearDown()
 {
     // Restore the JFactory
     $this->restoreFactoryState();
     // Reset the application template
     $application = JFactory::getApplication('site');
     $attribute = new ReflectionProperty($application, 'template');
     $attribute->setAccessible(TRUE);
     $attribute->setValue($application, null);
     // Restore the $_SERVER global
     global $_SERVER;
     $_SERVER = $this->_stashedServer;
     // Call the parent
     parent::tearDown();
 }
Пример #4
0
 protected function tearDown()
 {
     $this->restoreFactoryState();
     MockSession::$user = null;
     parent::tearDown();
 }
Пример #5
0
 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  */
 protected function tearDown()
 {
     $this->restoreFactoryState();
     parent::tearDown();
 }