diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-12-01 14:50:13 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-12-02 09:14:41 +0100 |
commit | 0391cc045109cc0dcc5f60753144593ab019626c (patch) | |
tree | 8f0f659d376bc4379120227e96643283080c6d17 /tests | |
parent | 6abc02cb884d4384f6892082373eab50c805486d (diff) | |
download | nextcloud-server-0391cc045109cc0dcc5f60753144593ab019626c.tar.gz nextcloud-server-0391cc045109cc0dcc5f60753144593ab019626c.zip |
Fix getCloudId
Diffstat (limited to 'tests')
-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()); } } |