aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/tests/Controller/AdminSettingsControllerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings/tests/Controller/AdminSettingsControllerTest.php')
-rw-r--r--apps/settings/tests/Controller/AdminSettingsControllerTest.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/settings/tests/Controller/AdminSettingsControllerTest.php b/apps/settings/tests/Controller/AdminSettingsControllerTest.php
index 6f4a941011e..578348a3031 100644
--- a/apps/settings/tests/Controller/AdminSettingsControllerTest.php
+++ b/apps/settings/tests/Controller/AdminSettingsControllerTest.php
@@ -81,6 +81,8 @@ class AdminSettingsControllerTest extends TestCase {
protected function tearDown(): void {
\OC::$server->getUserManager()->get($this->adminUid)->delete();
+ \OC_User::setUserId(null);
+ \OC::$server->getUserSession()->setUser(null);
parent::tearDown();
}