diff --git a/tests/bootstrap.php b/tests/bootstrap.php index abec739a..30e6a47b 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -1,19 +1,25 @@ addValidRoot(OC::$SERVERROOT . '/tests'); +Server::get(IAppManager::class)->loadApp('privacy'); -// Fix for "Autoload path not allowed: .../privacy/tests/testcase.php" -\OC_App::loadApp('privacy'); - -if (!class_exists('\PHPUnit\Framework\TestCase')) { +if (!class_exists(TestCase::class)) { require_once('PHPUnit/Autoload.php'); } - -OC_Hook::clear();