summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-04-09 15:02:24 +0200
committerVincent Petry <pvince81@owncloud.com>2015-04-09 15:02:24 +0200
commit5803a1f5f7a22feee84cef552bfff3e6b40e6859 (patch)
tree8fde698588b3e0ae5e2c93596bb5b14b6c0ab31b /apps
parent08a9d1d2dcb9553edd394f6f4df1ace8a407156a (diff)
downloadnextcloud-server-5803a1f5f7a22feee84cef552bfff3e6b40e6859.tar.gz
nextcloud-server-5803a1f5f7a22feee84cef552bfff3e6b40e6859.zip
Remove trashbin storage wrapper when disabling it for tests
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/tests/deleteorphanedsharesjobtest.php3
1 files changed, 3 insertions, 0 deletions
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() {