diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 301798cec..f335cab1e 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -1,26 +1,26 @@ addValidRoot(OC::$SERVERROOT . '/tests'); - -// Fix for "Autoload path not allowed: .../photos/tests/testcase.php" -\OC_App::loadApp('photos'); +require_once __DIR__ . '/../../../tests/autoload.php'; if (!class_exists(TestCase::class)) { require_once('PHPUnit/Autoload.php'); } -OC_Hook::clear(); +Server::get(IAppManager::class)->loadApp('photos');