mirror of
https://github.com/nextcloud/server.git
synced 2026-05-26 03:04:35 -04:00
Pass config object in testGetHomeNotSupported
This commit is contained in:
parent
208037b56a
commit
a8fd55d90d
1 changed files with 4 additions and 1 deletions
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue