/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. * * @return void * * @since 11.4 */ protected function setUp() { parent::setup(); $this->saveFactoryState(); JFactory::$session = $this->getMockSession(); }