diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 1fb54344d4978..278f0b185d419 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -31,7 +31,10 @@ if ($file->isDot()) { continue; } - $appManager->loadApp($file->getFilename()); + $appId = $file->getFilename(); + if ($appManager->isEnabledForAnyone($appId)) { + $appManager->loadApp($appId); + } } } diff --git a/tests/lib/TestCase.php b/tests/lib/TestCase.php index 5efa5249bc53e..0c891a23f33d2 100644 --- a/tests/lib/TestCase.php +++ b/tests/lib/TestCase.php @@ -15,10 +15,6 @@ use OC\Files\Config\MountProviderCollection; use OC\Files\Config\UserMountCache; use OC\Files\Filesystem; -use OC\Files\Mount\CacheMountProvider; -use OC\Files\Mount\LocalHomeMountProvider; -use OC\Files\Mount\RootMountProvider; -use OC\Files\ObjectStore\PrimaryObjectStoreConfig; use OC\Files\SetupManager; use OC\Files\View; use OC\Installer; @@ -34,6 +30,7 @@ use OCP\Lock\LockedException; use OCP\Security\ISecureRandom; use OCP\Server; +use Override; use PHPUnit\Framework\Attributes\Group; use Psr\Container\ContainerExceptionInterface;