summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2016-08-30 15:11:33 +0200
committerRobin Appelman <robin@icewind.nl>2016-08-31 15:08:29 +0200
commit344945bfe9c6d446742fb1d8020862c3c474776a (patch)
tree5e5defb625b0845bea479ec79156bde7db23db90 /apps/dav/tests/unit/CardDAV/CardDavBackendTest.php
parenta82d4a56fb5bc484114c702bcd63e6278830bd5d (diff)
downloadnextcloud-server-344945bfe9c6d446742fb1d8020862c3c474776a.tar.gz
nextcloud-server-344945bfe9c6d446742fb1d8020862c3c474776a.zip
more efficient check if addressbook and calendar exists for user
Diffstat (limited to 'apps/dav/tests/unit/CardDAV/CardDavBackendTest.php')
-rw-r--r--apps/dav/tests/unit/CardDAV/CardDavBackendTest.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php b/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php
index bbeadf81277..cf5972f79bf 100644
--- a/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php
+++ b/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php
@@ -118,6 +118,7 @@ class CardDavBackendTest extends TestCase {
// create a new address book
$this->backend->createAddressBook(self::UNIT_TEST_USER, 'Example', []);
+ $this->assertEquals(1, $this->backend->getAddressBooksForUserCount(self::UNIT_TEST_USER));
$books = $this->backend->getAddressBooksForUser(self::UNIT_TEST_USER);
$this->assertEquals(1, count($books));
$this->assertEquals('Example', $books[0]['{DAV:}displayname']);