Unregister trashbin storage wrapper at the end of tests

Some more tests that uses the storage wrapper now remove it afterwards
This commit is contained in:
Vincent Petry 2015-01-23 15:22:06 +01:00
parent 87a1b2bdc4
commit 1a06edd712
2 changed files with 4 additions and 0 deletions

View File

@ -46,6 +46,8 @@ class Test_Files_Sharing_Storage extends OCA\Files_sharing\Tests\TestCase {
$this->view->unlink($this->folder);
$this->view->unlink($this->filename);
\OC\Files\Filesystem::getLoader()->removeStorageWrapper('oc_trashbin');
parent::tearDown();
}

View File

@ -111,6 +111,8 @@ class Test_Files_Sharing_Updater extends OCA\Files_sharing\Tests\TestCase {
if ($status === false) {
\OC_App::disable('files_trashbin');
}
\OC\Files\Filesystem::getLoader()->removeStorageWrapper('oc_trashbin');
}
/**