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(); }
protected function tearDown() { parent::tearDown(); if (isset($_SERVER['HTTP_HOST'])) { unset($_SERVER['HTTP_HOST']); } }
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(); }
protected function tearDown() { $this->restoreFactoryState(); MockSession::$user = null; parent::tearDown(); }
/** * 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(); }