mirror of
https://github.com/nextcloud/server.git
synced 2026-03-21 10:00:33 -04:00
Fix BackgroundCleanupJobTest
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
a224551132
commit
633ea018af
1 changed files with 2 additions and 2 deletions
|
|
@ -69,7 +69,7 @@ class BackgroundCleanupJobTest extends \Test\TestCase {
|
|||
parent::setUp();
|
||||
|
||||
$this->userId = $this->getUniqueID();
|
||||
$this->createUser($this->userId, $this->userId);
|
||||
$user = $this->createUser($this->userId, $this->userId);
|
||||
|
||||
$storage = new \OC\Files\Storage\Temporary([]);
|
||||
$this->registerMount($this->userId, $storage, '');
|
||||
|
|
@ -79,7 +79,7 @@ class BackgroundCleanupJobTest extends \Test\TestCase {
|
|||
$this->loginAsUser($this->userId);
|
||||
|
||||
$appManager = \OC::$server->getAppManager();
|
||||
$this->trashEnabled = $appManager->isEnabledForUser('files_trashbin', $this->userId);
|
||||
$this->trashEnabled = $appManager->isEnabledForUser('files_trashbin', $user);
|
||||
$appManager->disableApp('files_trashbin');
|
||||
|
||||
$this->connection = \OC::$server->getDatabaseConnection();
|
||||
|
|
|
|||
Loading…
Reference in a new issue