[Pkg-owncloud-commits] [owncloud] 23/457: fix tests

David Prévot taffit at moszumanska.debian.org
Sun Jun 28 20:05:18 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 a5d652a6b834e4aae9432c1e8e4a2ca0450e8cbb
Author: Robin Appelman <icewind at owncloud.com>
Date:   Mon May 11 15:55:23 2015 +0200

    fix tests
---
 tests/lib/testcase.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/lib/testcase.php b/tests/lib/testcase.php
index 3b7ad2a..c1ebfb0 100644
--- a/tests/lib/testcase.php
+++ b/tests/lib/testcase.php
@@ -174,7 +174,9 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase {
 		\OC\Files\Filesystem::tearDown();
 		\OC_User::setUserId($user);
 		\OC_Util::setupFS($user);
-		\OC::$server->getUserFolder($user);
+		if (\OC_User::userExists($user)) {
+			\OC::$server->getUserFolder($user);
+		}
 	}
 
 	/**

-- 
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