aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/base.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/base.php b/lib/base.php
index 51f4d819ab1..80b1a2bafcd 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -488,9 +488,10 @@ class OC {
OC::$SERVERROOT . '/settings',
OC::$SERVERROOT . '/ocs',
OC::$SERVERROOT . '/ocs-provider',
- OC::$SERVERROOT . '/3rdparty',
- OC::$SERVERROOT . '/tests',
]);
+ if (defined('PHPUNIT_RUN')) {
+ self::$loader->addValidRoot(OC::$SERVERROOT . '/tests');
+ }
spl_autoload_register(array(self::$loader, 'load'));
$loaderEnd = microtime(true);