From 54250ed06554cb59683f5c03a1e4529660febc52 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 19 May 2016 15:49:27 +0200 Subject: [PATCH] Add PSR-4 loading for Test\ and Tests\ --- tests/bootstrap.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 86bedc3f32..e2b980b1c8 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -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