mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Properly log out test users in unit tests
This commit is contained in:
parent
f8a4cc0284
commit
eab55aa959
1 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue