コード例 #1
0
ファイル: InstallerTest.php プロジェクト: Joal01/fof
 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
ファイル: ViewTest.php プロジェクト: Joal01/fof
 protected function tearDown()
 {
     parent::tearDown();
     if (isset($_SERVER['HTTP_HOST'])) {
         unset($_SERVER['HTTP_HOST']);
     }
 }
コード例 #3
0
ファイル: TemplateTest.php プロジェクト: Joal01/fof
 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
ファイル: PlatformJoomlaTest.php プロジェクト: Joal01/fof
 protected function tearDown()
 {
     $this->restoreFactoryState();
     MockSession::$user = null;
     parent::tearDown();
 }
コード例 #5
0
ファイル: LayoutHelperTest.php プロジェクト: Joal01/fof
 /**
  * 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();
 }