Exemple #1
0
 /**
  * Gets a mock web object.
  *
  * @param   array  $options  A set of options to configure the mock.
  *
  * @return  JApplicationWeb
  *
  * @since   12.1
  */
 public function getMockWeb($options = array())
 {
     // Attempt to load the real class first.
     class_exists('JApplicationWeb');
     return TestMockApplicationWeb::create($this, $options);
 }
 /**
  * Setup the tests.
  *
  * @return  void
  *
  * @since   12.1
  */
 protected function setUp()
 {
     parent::setUp();
     $this->saveFactoryState();
     $app = TestMockApplicationWeb::create($this);
     $app->input = 'default';
     JFactory::$application = $app;
     $this->_instance = new BaseController();
 }