Unregister trashbin storage wrapper at the end of tests

Some more tests that uses the storage wrapper now remove it afterwards
remotes/origin/create-share-target-reuse
Vincent Petry 10 years ago
parent 87a1b2bdc4
commit 1a06edd712
  1. 2
      apps/files_sharing/tests/sharedstorage.php
  2. 2
      apps/files_sharing/tests/updater.php

@ -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();
}

@ -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');
}
/**

Loading…
Cancel
Save