Exemplo n.º 1
0
 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  *
  * @return  void
  *
  * @since   3.0
  */
 protected function setUp()
 {
     parent::setUp();
     // We need to mock the application
     $this->saveFactoryState();
     JFactory::$application = TestCase::getMockApplication();
 }
Exemplo n.º 2
0
 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  */
 protected function setUp()
 {
     // Import dependencies
     jimport('joomla.application.router');
     // We need to mock the application
     $this->saveFactoryState();
     JFactory::$application = TestCase::getMockApplication();
 }