diff options
author | Robin Appelman <robin@icewind.nl> | 2018-12-06 16:53:13 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2018-12-06 16:53:13 +0100 |
commit | 036475fc91ea913eb4ed4ee14d45915d2bfeb8c6 (patch) | |
tree | d6598ab1d53badef27edabc9e1c6cf64147ec67b /tests | |
parent | 740ea0d30e8ed8967e5d940b971e8854812c627d (diff) | |
download | nextcloud-server-036475fc91ea913eb4ed4ee14d45915d2bfeb8c6.tar.gz nextcloud-server-036475fc91ea913eb4ed4ee14d45915d2bfeb8c6.zip |
use a fresh appdata factory in background job test
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Preview/BackgroundCleanupJobTest.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/lib/Preview/BackgroundCleanupJobTest.php b/tests/lib/Preview/BackgroundCleanupJobTest.php index 9d10da025dd..b33d75c6aa6 100644 --- a/tests/lib/Preview/BackgroundCleanupJobTest.php +++ b/tests/lib/Preview/BackgroundCleanupJobTest.php @@ -25,6 +25,7 @@ namespace Test\Preview; use OC\Files\AppData\Factory; use OC\Preview\BackgroundCleanupJob; use OC\PreviewManager; +use OC\SystemConfig; use OCP\Files\IRootFolder; use OCP\IDBConnection; use Test\Traits\MountProviderTrait; @@ -77,7 +78,10 @@ class BackgroundCleanupJobTest extends \Test\TestCase { $this->trashEnabled = $appManager->isEnabledForUser('files_trashbin', $this->userId); $appManager->disableApp('files_trashbin'); - $this->appDataFactory = \OC::$server->query(Factory::class); + $this->appDataFactory = new Factory( + \OC::$server->getRootFolder(), + \OC::$server->getSystemConfig() + ); $this->connection = \OC::$server->getDatabaseConnection(); $this->previewManager = \OC::$server->getPreviewManager(); $this->rootFolder = \OC::$server->getRootFolder(); |