Properly log out test users in unit tests

This commit is contained in:
Vincent Petry 2015-05-15 12:29:47 +02:00
parent f8a4cc0284
commit eab55aa959
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}
/**