aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/testcase.php
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-05-15 12:29:47 +0200
committerVincent Petry <pvince81@owncloud.com>2015-05-15 12:33:17 +0200
commiteab55aa959d0bd167b6a2a51483cb1f24d471df0 (patch)
tree855481ddc1ebb84220fdc8439f91d1086e87cbed /tests/lib/testcase.php
parentf8a4cc0284bc7883a4fcc78c327146cdbc89be28 (diff)
downloadnextcloud-server-eab55aa959d0bd167b6a2a51483cb1f24d471df0.tar.gz
nextcloud-server-eab55aa959d0bd167b6a2a51483cb1f24d471df0.zip
Properly log out test users in unit tests
Diffstat (limited to 'tests/lib/testcase.php')
-rw-r--r--tests/lib/testcase.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/lib/testcase.php b/tests/lib/testcase.php
index e66dfb13353..76d5662da9d 100644
--- a/tests/lib/testcase.php
+++ b/tests/lib/testcase.php
@@ -182,6 +182,8 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase {
static protected function logout() {
\OC_Util::tearDownFS();
\OC_User::setUserId('');
+ // needed for fully logout
+ \OC::$server->getUserSession()->setUser(null);
}
/**