do not use service overrides when running unit tests
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@631 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
parent
983e4666c4
commit
d385ce8641
1 changed files with 3 additions and 1 deletions
|
@ -57,7 +57,9 @@ require_once 'SemanticScuttle/DbService.php';
|
|||
require_once 'SemanticScuttle/Service/Factory.php';
|
||||
require_once 'SemanticScuttle/functions.php';
|
||||
|
||||
if (count($GLOBALS['serviceoverrides']) > 0) {
|
||||
if (count($GLOBALS['serviceoverrides']) > 0
|
||||
&& !defined('UNIT_TEST_MODE')
|
||||
) {
|
||||
SemanticScuttle_Service_Factory::$serviceoverrides
|
||||
= $GLOBALS['serviceoverrides'];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue