Skip to content

Commit

Permalink
Fix: Fix PHPUnit test
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Aug 20, 2011
1 parent 38ad3af commit 660fa64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/phpunit/CoreTest.php
Expand Up @@ -20,14 +20,13 @@
* \file test/phpunit/SecurityTest.php
* \ingroup test
* \brief PHPUnit test
* \version $Id$
* \version $Id: CoreTest.php,v 1.4 2011/08/20 21:21:07 eldy Exp $
* \remarks To run this script as CLI: phpunit filename.php
*/

global $conf,$user,$langs,$db;
//define('TEST_DB_FORCE_TYPE','mysql'); // This is to force using mysql driver
require_once 'PHPUnit/Framework.php';
require_once dirname(__FILE__).'/../../htdocs/lib/functions.lib.php';

if (! defined('NOREQUIREUSER')) define('NOREQUIREUSER','1');
if (! defined('NOREQUIREDB')) define('NOREQUIREDB','1');
Expand Down Expand Up @@ -176,6 +175,7 @@ public function testDetectURLROOT()
//$dolibarr_main_url_root_alt='http://localhost/dolibarralias/custom2';

include dirname(__FILE__).'/../../htdocs/filefunc.inc.php';

print __METHOD__." DOL_MAIN_URL_ROOT=".DOL_MAIN_URL_ROOT."\n";
print __METHOD__." DOL_URL_ROOT=".DOL_URL_ROOT."\n";
print __METHOD__." DOL_MAIN_URL_ROOT_ALT=".DOL_MAIN_URL_ROOT_ALT."\n";
Expand Down

0 comments on commit 660fa64

Please sign in to comment.