Esempio n. 1
0
 /**
  * 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);
 }
Esempio n. 2
0
 /**
  * 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);
 }