diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-05-15 12:29:47 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-05-15 17:36:38 +0200 |
commit | a5466fc9094f51dcbb2df2a103bbfac2eb7b844f (patch) | |
tree | 31afedf96933bd63ddf8352e3d60bf80a26b7c99 | |
parent | 15c85014838a734b18c7ef24352298b9bfbd7d41 (diff) | |
download | nextcloud-server-a5466fc9094f51dcbb2df2a103bbfac2eb7b844f.tar.gz nextcloud-server-a5466fc9094f51dcbb2df2a103bbfac2eb7b844f.zip |
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); } } |