diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-03-11 10:42:57 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-03-11 13:59:19 +0100 |
commit | 2faf520504d982a40dd94fdc3bb23b4987f135c2 (patch) | |
tree | d8f0aef06a6ca5275aadc57009517b98ef70e8b7 /build | |
parent | b4affa4d273df89c9e45da2ecebae4663b927a56 (diff) | |
download | nextcloud-server-2faf520504d982a40dd94fdc3bb23b4987f135c2.tar.gz nextcloud-server-2faf520504d982a40dd94fdc3bb23b4987f135c2.zip |
Fix issues in CardDav
Diffstat (limited to 'build')
-rw-r--r-- | build/integration/features/bootstrap/CardDavContext.php | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/build/integration/features/bootstrap/CardDavContext.php b/build/integration/features/bootstrap/CardDavContext.php index 251d76d0833..d317ba5193f 100644 --- a/build/integration/features/bootstrap/CardDavContext.php +++ b/build/integration/features/bootstrap/CardDavContext.php @@ -73,6 +73,10 @@ class CardDavContext implements \Behat\Behat\Context\Context { /** * @When :user requests addressbook :addressBook with statuscode :statusCode + * @param string $user + * @param string $addressBook + * @param int $statusCode + * @throws \Exception */ public function requestsAddressbookWithStatuscode($user, $addressBook, $statusCode) { $davUrl = $this->baseUrl . '/remote.php/dav/addressbooks/users/'.$addressBook; @@ -112,6 +116,10 @@ class CardDavContext implements \Behat\Behat\Context\Context { /** * @Given :user creates an addressbook named :addressBook with statuscode :statusCode + * @param string $user + * @param string $addressBook + * @param int $statusCode + * @throws \Exception */ public function createsAnAddressbookNamedWithStatuscode($user, $addressBook, $statusCode) { $davUrl = $this->baseUrl . '/remote.php/dav/addressbooks/users/'.$user.'/'.$addressBook; @@ -121,9 +129,7 @@ class CardDavContext implements \Behat\Behat\Context\Context { 'MKCOL', $davUrl, [ - 'body' => '<d:mkcol xmlns:c="urn:ietf:params:xml:ns:caldav" - xmlns:card="urn:ietf:params:xml:ns:carddav" - xmlns:cs="http://calendarserver.org/ns/" + 'body' => '<d:mkcol xmlns:card="urn:ietf:params:xml:ns:carddav" xmlns:d="DAV:"> <d:set> <d:prop> @@ -158,6 +164,8 @@ class CardDavContext implements \Behat\Behat\Context\Context { /** * @When The CardDAV exception is :message + * @param string $message + * @throws \Exception */ public function theCarddavExceptionIs($message) { $result = $this->responseXml['value'][0]['value']; @@ -175,6 +183,8 @@ class CardDavContext implements \Behat\Behat\Context\Context { /** * @When The CardDAV error message is :arg1 + * @param string $message + * @throws \Exception */ public function theCarddavErrorMessageIs($message) { $result = $this->responseXml['value'][1]['value']; |