From a5466fc9094f51dcbb2df2a103bbfac2eb7b844f Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Fri, 15 May 2015 12:29:47 +0200 Subject: Properly log out test users in unit tests --- tests/lib/testcase.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/lib/testcase.php b/tests/lib/testcase.php index 1ea3aa13547..704912b22a4 100644 --- a/tests/lib/testcase.php +++ b/tests/lib/testcase.php @@ -168,5 +168,7 @@ 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); } } -- cgit v1.2.3