Browse Source

Fix BackgroundCleanupJobTest

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
tags/v27.0.0beta1
Côme Chilliet 1 year ago
parent
commit
633ea018af
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      tests/lib/Preview/BackgroundCleanupJobTest.php

+ 2
- 2
tests/lib/Preview/BackgroundCleanupJobTest.php View File

parent::setUp(); parent::setUp();


$this->userId = $this->getUniqueID(); $this->userId = $this->getUniqueID();
$this->createUser($this->userId, $this->userId);
$user = $this->createUser($this->userId, $this->userId);


$storage = new \OC\Files\Storage\Temporary([]); $storage = new \OC\Files\Storage\Temporary([]);
$this->registerMount($this->userId, $storage, ''); $this->registerMount($this->userId, $storage, '');
$this->loginAsUser($this->userId); $this->loginAsUser($this->userId);


$appManager = \OC::$server->getAppManager(); $appManager = \OC::$server->getAppManager();
$this->trashEnabled = $appManager->isEnabledForUser('files_trashbin', $this->userId);
$this->trashEnabled = $appManager->isEnabledForUser('files_trashbin', $user);
$appManager->disableApp('files_trashbin'); $appManager->disableApp('files_trashbin');


$this->connection = \OC::$server->getDatabaseConnection(); $this->connection = \OC::$server->getDatabaseConnection();

Loading…
Cancel
Save