Esempio n. 1
0
 /**
  * Gets a mock application object.
  *
  * @return  JApplication
  *
  * @since   11.3
  */
 public function getMockApplication()
 {
     // Load the real class first otherwise the mock will be used if jimport is called again.
     require_once JPATH_PLATFORM . '/joomla/application/application.php';
     // Load the mock class builder.
     require_once JPATH_TESTS . '/includes/mocks/JApplicationMock.php';
     return JApplicationGlobalMock::create($this);
 }
 /**
  * Gets a mock application object.
  *
  * @return  object
  *
  * @since   11.3
  */
 protected function getMockApplication()
 {
     require_once JPATH_TESTS . '/suite/joomla/application/JApplicationMock.php';
     return JApplicationGlobalMock::create($this);
 }
 /**
  * Gets a mock application object.
  *
  * @return  object
  *
  * @since   11.3
  */
 protected function getMockApplication()
 {
     // Load the real class first otherwise the mock will be used if jimport is called again.
     require_once JPATH_PLATFORM . '/joomla/application/application.php';
     require_once JPATH_TESTS . '/suite/joomla/application/JApplicationMock.php';
     return JApplicationGlobalMock::create($this);
 }