From a8fd55d90df1c8db3ef096d3e85d0b83336f10fb Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 20 Dec 2013 13:57:22 +0100 Subject: Pass config object in testGetHomeNotSupported --- tests/lib/user/user.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/lib') 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()); } -- cgit v1.2.3