mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Merge pull request #61071 from nextcloud/test-db-cleanup
test: cleanup users before userbackend test
This commit is contained in:
commit
d3229157ba
2 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue