diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-05-15 12:29:47 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-05-15 12:33:17 +0200 |
commit | eab55aa959d0bd167b6a2a51483cb1f24d471df0 (patch) | |
tree | 855481ddc1ebb84220fdc8439f91d1086e87cbed /tests/lib/testcase.php | |
parent | f8a4cc0284bc7883a4fcc78c327146cdbc89be28 (diff) | |
download | nextcloud-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.php | 2 |
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); } /** |