Merge pull request #61071 from nextcloud/test-db-cleanup

test: cleanup users before userbackend test
This commit is contained in:
Andy Scherzinger 2026-06-08 18:01:29 +02:00 committed by GitHub
commit d3229157ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View file

@ -10,8 +10,8 @@ declare(strict_types=1);
namespace OC\Files\Storage\Wrapper;
use OC\Files\Cache\Wrapper\CacheDirPermissionsMask;
use OC\Files\Storage\Storage;
use OCP\Files\Cache\ICache;
use OCP\Files\Storage\IStorage;
/**
* While PermissionMask can mask a whole storage this can
@ -30,7 +30,7 @@ class DirPermissionsMask extends PermissionsMask {
private readonly int $pathLength;
/**
* @param array{storage: Storage, mask: int, path: string, ...} $parameters
* @param array{storage: IStorage, mask: int, path: string, ...} $parameters
* @psalm-suppress MoreSpecificImplementedParamType
*
* $storage: The storage the permissions mask should be applied on

View file

@ -43,6 +43,10 @@ class DatabaseTest extends Backend {
$this->eventDispatcher = $this->createMock(IEventDispatcher::class);
$this->backend = new Database($this->eventDispatcher);
foreach ($this->backend->getUsers() as $user) {
$this->backend->deleteUser($user);
}
}
#[\Override]