summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-12-20 13:57:22 +0100
committerRobin Appelman <icewind@owncloud.com>2014-01-02 16:58:30 +0100
commita8fd55d90df1c8db3ef096d3e85d0b83336f10fb (patch)
tree4e04a768e0567a392a6fcf8154d240c65f9e3c16 /tests
parent208037b56a3289d5dd88748424ace506e0b426f9 (diff)
downloadnextcloud-server-a8fd55d90df1c8db3ef096d3e85d0b83336f10fb.tar.gz
nextcloud-server-a8fd55d90df1c8db3ef096d3e85d0b83336f10fb.zip
Pass config object in testGetHomeNotSupported
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/user/user.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/lib/user/user.php b/tests/lib/user/user.php
index 0bbcda013ce..3f90432c6b0 100644
--- a/tests/lib/user/user.php
+++ b/tests/lib/user/user.php
@@ -9,6 +9,7 @@
namespace Test\User;
+use OC\AllConfig;
use OC\Hooks\PublicEmitter;
class User extends \PHPUnit_Framework_TestCase {
@@ -205,7 +206,9 @@ class User extends \PHPUnit_Framework_TestCase {
->method('implementsActions')
->will($this->returnValue(false));
- $user = new \OC\User\User('foo', $backend);
+ $allConfig = new AllConfig();
+
+ $user = new \OC\User\User('foo', $backend, null, $allConfig);
$this->assertEquals(\OC_Config::getValue("datadirectory", \OC::$SERVERROOT . "/data") . '/foo', $user->getHome());
}