summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-12-20 13:57:22 +0100
committerRobin Appelman <icewind@owncloud.com>2013-12-20 13:57:22 +0100
commit0ed1b64673144488bd21e25d92bac89126e6d4f9 (patch)
treedf09c5debef0313ef4f54adb5589bc849851f9df
parent321d96135385cd4b8941ad49555bb7612e5cbddf (diff)
downloadnextcloud-server-0ed1b64673144488bd21e25d92bac89126e6d4f9.tar.gz
nextcloud-server-0ed1b64673144488bd21e25d92bac89126e6d4f9.zip
Pass config object in testGetHomeNotSupported
-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());
}