[Pkg-owncloud-commits] [owncloud] 93/123: Properly log out test users in unit tests

David Prévot taffit at moszumanska.debian.org
Tue May 19 23:55:21 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch stable8
in repository owncloud.

commit eab55aa959d0bd167b6a2a51483cb1f24d471df0
Author: Vincent Petry <pvince81 at owncloud.com>
Date:   Fri May 15 12:29:47 2015 +0200

    Properly log out test users in unit tests
---
 tests/lib/testcase.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/lib/testcase.php b/tests/lib/testcase.php
index e66dfb1..76d5662 100644
--- a/tests/lib/testcase.php
+++ b/tests/lib/testcase.php
@@ -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);
 	}
 
 	/**

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list