]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove trashbin storage wrapper when disabling it for tests
authorVincent Petry <pvince81@owncloud.com>
Thu, 9 Apr 2015 13:02:24 +0000 (15:02 +0200)
committerVincent Petry <pvince81@owncloud.com>
Thu, 9 Apr 2015 13:02:24 +0000 (15:02 +0200)
apps/files_sharing/tests/deleteorphanedsharesjobtest.php

index e1c6a6f6ad3732d50924f091cbd49bef7cd5b035..20f3bcd5ebd38575c8a81c55ec9fcdea76777b3b 100644 (file)
@@ -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() {