Remove trashbin storage wrapper when disabling it for tests

This commit is contained in:
Vincent Petry 2015-04-09 15:02:24 +02:00
parent 08a9d1d2dc
commit 5803a1f5f7
1 changed files with 3 additions and 0 deletions

View 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() {