Hi, I’m trying to make a change to ShareAPIController.php in the files_sharing app (which is part of the core nextcloud server repo, not a separate app with its own repo).
When I run phpunit tests/Controller/ShareAPIControllerTest.php
, I get this error message:
Fatal error: Uncaught Error: Class "Test\TestCase" not found in
/var/www/html/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php:74
I haven’t been able to figure out how to run those tests locally. I’ve tried looking at how it’s done in the github actions config, but couldn’t find it.
I’m running Nextcloud locally by following this tutorial.
Does anyone know how to run those tests locally?