From: Vincent Petry Date: Thu, 9 Apr 2015 13:02:24 +0000 (+0200) Subject: Remove trashbin storage wrapper when disabling it for tests X-Git-Tag: v8.1.0alpha1~48^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5803a1f5f7a22feee84cef552bfff3e6b40e6859;p=nextcloud-server.git Remove trashbin storage wrapper when disabling it for tests --- diff --git a/apps/files_sharing/tests/deleteorphanedsharesjobtest.php b/apps/files_sharing/tests/deleteorphanedsharesjobtest.php index e1c6a6f6ad3..20f3bcd5ebd 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() {