Only '/tests' to be autoloaded when running unit tests
This commit is contained in:
parent
fce8c42240
commit
1a592e5745
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue