summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-05-11 15:55:23 +0200
committerVincent Petry <pvince81@owncloud.com>2015-05-18 12:11:31 +0200
commita5d652a6b834e4aae9432c1e8e4a2ca0450e8cbb (patch)
tree2282856aaaa8217637d4461d8789f08ab474652b
parent415f16eb24138e75be25f66ac261dd08cb269cc9 (diff)
downloadnextcloud-server-a5d652a6b834e4aae9432c1e8e4a2ca0450e8cbb.tar.gz
nextcloud-server-a5d652a6b834e4aae9432c1e8e4a2ca0450e8cbb.zip
fix tests
-rw-r--r--tests/lib/testcase.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/testcase.php b/tests/lib/testcase.php
index 3b7ad2a9632..c1ebfb025cf 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);
+ }
}
/**