From 5f6944954bcbd356dd1fe11ac1698bc8178cb84e Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Tue, 28 Jun 2016 16:11:06 +0200 Subject: get only vcard which match both the address book id and the vcard uri --- apps/dav/tests/unit/CardDAV/CardDavBackendTest.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps/dav/tests/unit/CardDAV/CardDavBackendTest.php') diff --git a/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php b/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php index 58a93befe68..9845d2d6909 100644 --- a/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php +++ b/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php @@ -606,6 +606,11 @@ class CardDavBackendTest extends TestCase { $this->assertSame(5489543, (int)$result['lastmodified']); $this->assertSame('etag0', $result['etag']); $this->assertSame(120, (int)$result['size']); + + // this shouldn't return any result because 'uri1' is in address book 1 + // see https://github.com/nextcloud/server/issues/229 + $result = $this->backend->getContact(0, 'uri1'); + $this->assertEmpty($result); } public function testGetContactFail() { -- cgit v1.2.3