summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php
index f1ee298a2fc..80b1a2bafcd 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -488,8 +488,10 @@ class OC {
OC::$SERVERROOT . '/settings',
OC::$SERVERROOT . '/ocs',
OC::$SERVERROOT . '/ocs-provider',
- OC::$SERVERROOT . '/tests',
]);
+ if (defined('PHPUNIT_RUN')) {
+ self::$loader->addValidRoot(OC::$SERVERROOT . '/tests');
+ }
spl_autoload_register(array(self::$loader, 'load'));
$loaderEnd = microtime(true);