From 5803a1f5f7a22feee84cef552bfff3e6b40e6859 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Thu, 9 Apr 2015 15:02:24 +0200 Subject: [PATCH] Remove trashbin storage wrapper when disabling it for tests --- apps/files_sharing/tests/deleteorphanedsharesjobtest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/files_sharing/tests/deleteorphanedsharesjobtest.php b/apps/files_sharing/tests/deleteorphanedsharesjobtest.php index e1c6a6f6ad..20f3bcd5eb 100644 --- a/apps/files_sharing/tests/deleteorphanedsharesjobtest.php +++ b/apps/files_sharing/tests/deleteorphanedsharesjobtest.php @@ -55,6 +55,9 @@ class DeleteOrphanedSharesJobTest extends \Test\TestCase { $appManager = \OC::$server->getAppManager(); self::$trashBinStatus = $appManager->isEnabledForUser('files_trashbin'); $appManager->disableApp('files_trashbin'); + + // just in case... + \OC\Files\Filesystem::getLoader()->removeStorageWrapper('oc_trashbin'); } public static function tearDownAfterClass() {