Properly log out test users in unit tests
This commit is contained in:
parent
f8a4cc0284
commit
eab55aa959
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue