diff --git a/tests/Unit/bootstrap.php b/tests/Unit/bootstrap.php index 9d19afa64..4204078bd 100644 --- a/tests/Unit/bootstrap.php +++ b/tests/Unit/bootstrap.php @@ -1,19 +1,21 @@ addValidRoot(OC::$SERVERROOT . '/tests'); - -// Fix for "Autoload path not allowed: .../notifications/tests/testcase.php" -\OC_App::loadApp('notifications'); - -OC_Hook::clear(); +Server::get(IAppManager::class)->loadApp('notifications');