summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2015-02-25 15:30:48 +0100
committerJoas Schilling <nickvergessen@gmx.de>2015-02-25 16:03:12 +0100
commitac5bb97d043c662621cb56ea3fc95a980ddf5564 (patch)
treea12438103d155a2a6ea181a18cb86ecc3431aef8 /apps
parent6e9f3b2f7e61d453f88865fbd7aa959c409120c2 (diff)
downloadnextcloud-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.php8
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();
}