summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/tests/deleteorphanedsharesjobtest.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/apps/files_sharing/tests/deleteorphanedsharesjobtest.php b/apps/files_sharing/tests/deleteorphanedsharesjobtest.php
index ec9d5f089bb..e1c6a6f6ad3 100644
--- a/apps/files_sharing/tests/deleteorphanedsharesjobtest.php
+++ b/apps/files_sharing/tests/deleteorphanedsharesjobtest.php
@@ -27,6 +27,11 @@ use OCA\Files_sharing\Lib\DeleteOrphanedSharesJob;
class DeleteOrphanedSharesJobTest extends \Test\TestCase {
/**
+ * @var bool
+ */
+ private static $trashBinStatus;
+
+ /**
* @var DeleteOrphanedSharesJob
*/
private $job;
@@ -46,6 +51,18 @@ class DeleteOrphanedSharesJobTest extends \Test\TestCase {
*/
private $user2;
+ public static function setUpBeforeClass() {
+ $appManager = \OC::$server->getAppManager();
+ self::$trashBinStatus = $appManager->isEnabledForUser('files_trashbin');
+ $appManager->disableApp('files_trashbin');
+ }
+
+ public static function tearDownAfterClass() {
+ if (self::$trashBinStatus) {
+ \OC::$server->getAppManager()->enableApp('files_trashbin');
+ }
+ }
+
protected function setup() {
parent::setUp();