fix tests

This commit is contained in:
Robin Appelman 2015-05-11 15:55:23 +02:00 committed by Vincent Petry
parent 415f16eb24
commit a5d652a6b8
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}
}
/**