diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 1fb07a01..f30ea305 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -1,19 +1,18 @@ addPsr4('Test\\', OC::$SERVERROOT . '/tests/lib/', true); -\OC::$composerAutoloader->addPsr4('Tests\\', OC::$SERVERROOT . '/tests/', true); +define('PHPUNIT_RUN', 1); -OC_App::loadApp('logreader'); +require_once __DIR__ . '/../../../lib/base.php'; +require_once __DIR__ . '/../../../tests/autoload.php'; -OC_Hook::clear(); +Server::get(IAppManager::class)->loadApp('logreader');