Exemplo 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);
 }
Exemplo 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);
 }