Skip to content

Commit

Permalink
test: Ensure PHPUnit works also locally
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux committed Aug 13, 2024
1 parent b113121 commit 9467886
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
\OC::$composerAutoloader->addPsr4('Tests\\', OC::$SERVERROOT . '/tests/', true);

// load all enabled apps
\OC_App::loadApps();
\OCP\Server::get(\OCP\App\IAppManager::class)->loadApps();
\OCP\Server::get(\OCP\App\IAppManager::class)->enableApp('files_lock', true);
\OC_App::updateApp('files_lock');

set_include_path(get_include_path() . PATH_SEPARATOR . '/usr/share/php');

0 comments on commit 9467886

Please sign in to comment.