]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix tests
authorRoeland Jago Douma <roeland@famdouma.nl>
Tue, 18 Oct 2016 21:01:44 +0000 (23:01 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Fri, 4 Nov 2016 12:37:00 +0000 (13:37 +0100)
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
apps/dav/lib/CardDAV/AddressBookImpl.php
apps/dav/tests/unit/CardDAV/AddressBookImplTest.php

index 5f77c0f44f68b1b2171cd936b533df3222baf453..c650f6c30be06ec890a1dc19a1a553a8de766759 100644 (file)
@@ -225,7 +225,6 @@ class AddressBookImpl implements IAddressBook {
                ];
 
                foreach ($vCard->children() as $property) {
-                       $result[$property->name] = $property->getValue();
                        if ($property->name === 'PHOTO' && $property->getValueType() === 'BINARY') {
                                $url = $this->urlGenerator->getAbsoluteURL(
                                        $this->urlGenerator->linkTo('', 'remote.php') . '/dav/');
index bd63f4cdffb1bb4df693d95adde5d279b0114957..172b341bd79f3de8bcbe11c205c4cf09afb6d058 100644 (file)
@@ -332,10 +332,11 @@ class AddressBookImplTest extends TestCase {
 
                $array = $this->invokePrivate($this->addressBookImpl, 'vCard2Array', ['uri', $vCard]);
                unset($array['PRODID']);
+               unset($array['UID']);
 
                $this->assertEquals([
                        'URI' => 'uri',
-                       'VERSION' => '3.0',
+                       'VERSION' => '4.0',
                        'FN' => 'Full Name',
                        'CLOUD' => [
                                'cloud-user1@localhost',