diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2015-02-25 15:30:48 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2015-02-25 16:03:12 +0100 |
commit | ac5bb97d043c662621cb56ea3fc95a980ddf5564 (patch) | |
tree | a12438103d155a2a6ea181a18cb86ecc3431aef8 /apps | |
parent | 6e9f3b2f7e61d453f88865fbd7aa959c409120c2 (diff) | |
download | nextcloud-server-ac5bb97d043c662621cb56ea3fc95a980ddf5564.tar.gz nextcloud-server-ac5bb97d043c662621cb56ea3fc95a980ddf5564.zip |
Reset the group backend aswell
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/tests/testcase.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/files_sharing/tests/testcase.php b/apps/files_sharing/tests/testcase.php index cbf324df55d..3c4b5870efa 100644 --- a/apps/files_sharing/tests/testcase.php +++ b/apps/files_sharing/tests/testcase.php @@ -65,7 +65,7 @@ abstract class TestCase extends \Test\TestCase { // reset backend \OC_User::clearBackends(); - \OC_User::useBackend('database'); + \OC_Group::clearBackends(); // clear share hooks \OC_Hook::clear('OCP\\Share'); @@ -130,6 +130,12 @@ abstract class TestCase extends \Test\TestCase { \OC_User::setUserId(''); Filesystem::tearDown(); + // reset backend + \OC_User::clearBackends(); + \OC_User::useBackend('database'); + \OC_Group::clearBackends(); + \OC_Group::useBackend(new \OC_Group_Database()); + parent::tearDownAfterClass(); } |