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

David Prévot taffit at moszumanska.debian.org
Sun May 31 12:32:40 UTC 2015


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

taffit pushed a commit to annotated tag v8.0.4RC1
in repository owncloud.

commit a5466fc9094f51dcbb2df2a103bbfac2eb7b844f
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 1ea3aa1..704912b 100644
--- a/tests/lib/testcase.php
+++ b/tests/lib/testcase.php
@@ -168,5 +168,7 @@ 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