/** * Sets up the fixture. * * This method is called before a test is executed. * * @since 11.1 * * @return void */ protected function setUp() { parent::setup(); // $this->saveFactoryState(); // JFactory::$session = $this->getMockSession(); $this->class = new NestedTable(self::$driver); }
/** * Sets up the fixture. * * This method is called before a test is executed. * * @since 11.1 * * @return void */ protected function setUp() { parent::setup(); $this->saveFactoryState(); $mockApp = $this->getMockCmsApp(); $mockApp->expects($this->any())->method('getDispatcher')->willReturn($this->getMockDispatcher()); JFactory::$application = $mockApp; $this->class = new NestedTable(self::$driver); }