diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-05-11 15:55:23 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-05-18 12:11:31 +0200 |
commit | a5d652a6b834e4aae9432c1e8e4a2ca0450e8cbb (patch) | |
tree | 2282856aaaa8217637d4461d8789f08ab474652b | |
parent | 415f16eb24138e75be25f66ac261dd08cb269cc9 (diff) | |
download | nextcloud-server-a5d652a6b834e4aae9432c1e8e4a2ca0450e8cbb.tar.gz nextcloud-server-a5d652a6b834e4aae9432c1e8e4a2ca0450e8cbb.zip |
fix tests
-rw-r--r-- | tests/lib/testcase.php | 4 |
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); + } } /** |