summaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2023-02-08 11:13:59 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2023-03-20 10:21:44 +0100
commit633ea018af94692cef8a196319f79eaf2467f061 (patch)
tree0f5226d892c580b52650c626f7b5cf3ef151b0e3 /tests/lib
parenta224551132baea6b75b4e14967633b9db12dc37e (diff)
downloadnextcloud-server-633ea018af94692cef8a196319f79eaf2467f061.tar.gz
nextcloud-server-633ea018af94692cef8a196319f79eaf2467f061.zip
Fix BackgroundCleanupJobTest
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/Preview/BackgroundCleanupJobTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/Preview/BackgroundCleanupJobTest.php b/tests/lib/Preview/BackgroundCleanupJobTest.php
index c1c225bd179..aa15ea7f562 100644
--- a/tests/lib/Preview/BackgroundCleanupJobTest.php
+++ b/tests/lib/Preview/BackgroundCleanupJobTest.php
@@ -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();