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
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment