Skip to content
Snippets Groups Projects
Commit 0ed1b646 authored by Robin Appelman's avatar Robin Appelman
Browse files

Pass config object in testGetHomeNotSupported

parent 321d9613
No related branches found
No related tags found
No related merge requests found
......@@ -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());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment