mirror of
https://github.com/nextcloud/server.git
synced 2026-02-18 18:28:50 -05:00
Only '/tests' to be autoloaded when running unit tests
This commit is contained in:
parent
fce8c42240
commit
1a592e5745
1 changed files with 3 additions and 1 deletions
|
|
@ -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 a new issue