Skip to content
Snippets Groups Projects
Commit eab55aa9 authored by Vincent Petry's avatar Vincent Petry
Browse files

Properly log out test users in unit tests

parent f8a4cc02
Branches
No related tags found
No related merge requests found
...@@ -182,6 +182,8 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase { ...@@ -182,6 +182,8 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase {
static protected function logout() { static protected function logout() {
\OC_Util::tearDownFS(); \OC_Util::tearDownFS();
\OC_User::setUserId(''); \OC_User::setUserId('');
// needed for fully logout
\OC::$server->getUserSession()->setUser(null);
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment