]> source.dussan.org Git - nextcloud-server.git/commitdiff
Unregister trashbin storage wrapper at the end of tests
authorVincent Petry <pvince81@owncloud.com>
Fri, 23 Jan 2015 14:22:06 +0000 (15:22 +0100)
committerVincent Petry <pvince81@owncloud.com>
Fri, 23 Jan 2015 14:36:09 +0000 (15:36 +0100)
Some more tests that uses the storage wrapper now remove it afterwards

apps/files_sharing/tests/sharedstorage.php
apps/files_sharing/tests/updater.php

index 7ab1564bc3d7dbcfa6f4086995bfe96b97c7deb9..2959b9aacfb1822fa3d520b8d6b4a746a45f34a5 100644 (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();
        }
 
index 1d6ec8caa615c22cdcd17e3d8265957cee4eb96d..cdaff0d0a566bdff7551aedd30358e0793505024 100644 (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');
        }
 
        /**