Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@
if ($file->isDot()) {
continue;
}
$appManager->loadApp($file->getFilename());
$appId = $file->getFilename();
if ($appManager->isEnabledForAnyone($appId)) {
$appManager->loadApp($appId);
}
}
}

Expand Down
5 changes: 1 addition & 4 deletions tests/lib/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;

Expand Down Expand Up @@ -321,10 +318,10 @@

/** @var IConfig $config */
$config = Server::get(IConfig::class);
$mountProviderCollection->registerProvider(new CacheMountProvider($config));

Check failure on line 321 in tests/lib/TestCase.php

View workflow job for this annotation

GitHub Actions / static-code-analysis

UndefinedClass

tests/lib/TestCase.php:321:50: UndefinedClass: Class, interface or enum named Test\CacheMountProvider does not exist (see https://psalm.dev/019)
$mountProviderCollection->registerHomeProvider(new LocalHomeMountProvider());

Check failure on line 322 in tests/lib/TestCase.php

View workflow job for this annotation

GitHub Actions / static-code-analysis

UndefinedClass

tests/lib/TestCase.php:322:54: UndefinedClass: Class, interface or enum named Test\LocalHomeMountProvider does not exist (see https://psalm.dev/019)
$objectStoreConfig = Server::get(PrimaryObjectStoreConfig::class);

Check failure on line 323 in tests/lib/TestCase.php

View workflow job for this annotation

GitHub Actions / static-code-analysis

UndefinedClass

tests/lib/TestCase.php:323:36: UndefinedClass: Class, interface or enum named Test\PrimaryObjectStoreConfig does not exist (see https://psalm.dev/019)
$mountProviderCollection->registerRootProvider(new RootMountProvider($objectStoreConfig, $config));

Check failure on line 324 in tests/lib/TestCase.php

View workflow job for this annotation

GitHub Actions / static-code-analysis

UndefinedClass

tests/lib/TestCase.php:324:54: UndefinedClass: Class, interface or enum named Test\RootMountProvider does not exist (see https://psalm.dev/019)

$setupManager->setupRoot();

Expand Down
Loading