mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 10:40:40 -04:00
Reset the group backend aswell
This commit is contained in:
parent
6e9f3b2f7e
commit
ac5bb97d04
1 changed files with 7 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue