]> source.dussan.org Git - nextcloud-server.git/commitdiff
Pass config object in testGetHomeNotSupported
authorRobin Appelman <icewind@owncloud.com>
Fri, 20 Dec 2013 12:57:22 +0000 (13:57 +0100)
committerRobin Appelman <icewind@owncloud.com>
Fri, 20 Dec 2013 12:57:22 +0000 (13:57 +0100)
tests/lib/user/user.php

index 0bbcda013cec0b07078dd22ffc2c552e5f3e6588..3f90432c6b0f92662fa4389913c94006ba5f153d 100644 (file)
@@ -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());
        }