|
|
|
@ -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();
|
|
|
|
|