diff options
Diffstat (limited to 'tests/lib/user/user.php')
-rw-r--r-- | tests/lib/user/user.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/lib/user/user.php b/tests/lib/user/user.php index 52f0a125303..134b79383ea 100644 --- a/tests/lib/user/user.php +++ b/tests/lib/user/user.php @@ -468,8 +468,14 @@ class User extends \Test\TestCase { */ $backend = $this->getMock('\Test\Util\User\Dummy'); $urlGenerator = $this->getMockBuilder('\OC\URLGenerator') + ->setMethods(['getAbsoluteURL']) ->disableOriginalConstructor()->getMock(); + $urlGenerator + ->expects($this->any()) + ->method('getAbsoluteURL') + ->withAnyParameters() + ->willReturn('http://localhost:8888/owncloud'); $user = new \OC\User\User('foo', $backend, null, null, null, $urlGenerator); - $this->assertEquals("foo@localhost", $user->getCloudId()); + $this->assertEquals("foo@localhost:8888/owncloud", $user->getCloudId()); } } |