Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix up unit tests. #126

Merged
merged 1 commit into from

2 participants

Louis Landry Andrew Eddie
Louis Landry

No description provided.

Andrew Eddie eddieajau merged commit 08f90ab into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 26, 2011
  1. Louis Landry

    Fixing up some unit tests.

    LouisLandry authored
This page is out of date. Refresh to see the latest.
1  libraries/joomla/application/application.php
View
@@ -9,6 +9,7 @@
defined('JPATH_PLATFORM') or die;
+jimport('joomla.application.input');
jimport('joomla.event.dispatcher');
jimport('joomla.environment.response');
jimport('joomla.log.log');
5 tests/suite/joomla/application/JApplicationTest.php
View
@@ -7,6 +7,7 @@
* @license GNU General Public License version 2 or later; see LICENSE
*/
+require_once JPATH_PLATFORM.'/joomla/environment/request.php';
require_once JPATH_PLATFORM.'/joomla/application/application.php';
/**
@@ -38,14 +39,14 @@ public function testInitialise()
*/
public function testConstructJInput()
{
- $app = new JApplication;
+ $app = new JApplication(array('session' => false));
$this->assertThat(
$app->input,
$this->isInstanceOf('JInput'),
__LINE__ . 'JApplication->input not initialized properly'
);
}
-
+
/**
* @todo Implement testRoute().
*/
Something went wrong with that request. Please try again.