aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit/CardDAV
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2017-04-19 16:18:44 +0200
committerGeorg Ehrke <developer@georgehrke.com>2017-04-23 11:26:49 +0200
commitc89e057d2765f0e594224ec24fcc424b75a01a87 (patch)
tree7deaf5216deb215f6ab8f3fc5df7a6ba176d8c1d /apps/dav/tests/unit/CardDAV
parent11c795388848807590cb56befb28cafec17be3bd (diff)
downloadnextcloud-server-c89e057d2765f0e594224ec24fcc424b75a01a87.tar.gz
nextcloud-server-c89e057d2765f0e594224ec24fcc424b75a01a87.zip
add owner-displayname property to calendars and addressbooks
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'apps/dav/tests/unit/CardDAV')
-rw-r--r--apps/dav/tests/unit/CardDAV/CardDavBackendTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php b/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php
index a4445217469..c108432d65b 100644
--- a/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php
+++ b/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php
@@ -82,7 +82,8 @@ class CardDavBackendTest extends TestCase {
->getMock();
$this->principal->method('getPrincipalByPath')
->willReturn([
- 'uri' => 'principals/best-friend'
+ 'uri' => 'principals/best-friend',
+ '{DAV:}displayname' => 'User\'s displayname',
]);
$this->principal->method('getGroupMembership')
->withAnyParameters()
@@ -123,6 +124,7 @@ class CardDavBackendTest extends TestCase {
$books = $this->backend->getAddressBooksForUser(self::UNIT_TEST_USER);
$this->assertEquals(1, count($books));
$this->assertEquals('Example', $books[0]['{DAV:}displayname']);
+ $this->assertEquals('User\'s displayname', $books[0]['{http://nextcloud.com/ns}owner-displayname']);
// update it's display name
$patch = new PropPatch([