Просмотр исходного кода

Fix BackgroundCleanupJobTest

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
tags/v27.0.0beta1
Côme Chilliet 1 год назад
Родитель
Сommit
633ea018af
Аккаунт пользователя с таким Email не найден
1 измененных файлов: 2 добавлений и 2 удалений
  1. 2
    2
      tests/lib/Preview/BackgroundCleanupJobTest.php

+ 2
- 2
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();

Загрузка…
Отмена
Сохранить