diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-05-18 12:26:58 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-05-18 12:26:58 +0200 |
commit | 4e44d2ecd6cc2ac065342591c1af61532b3ba774 (patch) | |
tree | 2673b870297a95bfe9da7253e80f4d706d993182 | |
parent | 23b8277c27ba116922513b5e0a4603de2f0cbf98 (diff) | |
parent | a5466fc9094f51dcbb2df2a103bbfac2eb7b844f (diff) | |
download | nextcloud-server-4e44d2ecd6cc2ac065342591c1af61532b3ba774.tar.gz nextcloud-server-4e44d2ecd6cc2ac065342591c1af61532b3ba774.zip |
Merge pull request #16375 from owncloud/tests-properlogout
[stable8] Properly log out test users in unit tests
-rw-r--r-- | tests/lib/testcase.php | 2 |
1 files changed, 2 insertions, 0 deletions
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); } } |