Add PSR-4 loading for Test\ and Tests\

This commit is contained in:
Joas Schilling 2016-05-19 15:49:27 +02:00
parent f8180391fd
commit 54250ed065
No known key found for this signature in database
GPG Key ID: 70A0B324C41C0946
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,8 @@ if ($configDir) {
require_once __DIR__ . '/../lib/base.php';
\OC::$composerAutoloader->addPsr4('Test\\', OC::$SERVERROOT . '/tests/lib/', true);
\OC::$composerAutoloader->addPsr4('Tests\\', OC::$SERVERROOT . '/tests/', true);
\OC::$loader->addValidRoot(OC::$SERVERROOT . '/tests');
// load all enabled apps