diff --git a/tests/unit/bootstrap.php b/tests/unit/bootstrap.php index 4ff11d2ee..ee1d0ef4c 100644 --- a/tests/unit/bootstrap.php +++ b/tests/unit/bootstrap.php @@ -1,19 +1,25 @@ loadApp('tables'); -\OC::$loader->addValidRoot(\OC::$SERVERROOT . '/tests'); -\OC_App::loadApp('tables'); -if (!class_exists('\PHPUnit\Framework\TestCase')) { +if (!class_exists(TestCase::class)) { require_once('PHPUnit/Autoload.php'); } -OC_Hook::clear();