diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-01-25 22:49:26 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-01-27 09:45:32 +0100 |
commit | ba565edc1e5b24da8c7ec7a4fae7164eac8cac50 (patch) | |
tree | 000a865f52f31f57201cb41810ee1da58f42ae93 /apps/dav/tests | |
parent | 92c7d1573934eb0fef2f901d90d5303e19bc34f1 (diff) | |
download | nextcloud-server-ba565edc1e5b24da8c7ec7a4fae7164eac8cac50.tar.gz nextcloud-server-ba565edc1e5b24da8c7ec7a4fae7164eac8cac50.zip |
Extract sharing functionality into own backend class for reusability
Diffstat (limited to 'apps/dav/tests')
-rw-r--r-- | apps/dav/tests/unit/carddav/carddavbackendtest.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/dav/tests/unit/carddav/carddavbackendtest.php b/apps/dav/tests/unit/carddav/carddavbackendtest.php index 1a0d32c186c..0158330a194 100644 --- a/apps/dav/tests/unit/carddav/carddavbackendtest.php +++ b/apps/dav/tests/unit/carddav/carddavbackendtest.php @@ -292,13 +292,13 @@ class CardDavBackendTest extends TestCase { $exampleBook = new AddressBook($this->backend, $books[0]); $this->backend->updateShares($exampleBook, [['href' => 'principal:principals/best-friend']], []); - $shares = $this->backend->getShares($exampleBook->getBookId()); + $shares = $this->backend->getShares($exampleBook->getResourceId()); $this->assertEquals(1, count($shares)); // adding the same sharee again has no effect $this->backend->updateShares($exampleBook, [['href' => 'principal:principals/best-friend']], []); - $shares = $this->backend->getShares($exampleBook->getBookId()); + $shares = $this->backend->getShares($exampleBook->getResourceId()); $this->assertEquals(1, count($shares)); $books = $this->backend->getAddressBooksForUser('principals/best-friend'); @@ -306,7 +306,7 @@ class CardDavBackendTest extends TestCase { $this->backend->updateShares($exampleBook, [], ['principal:principals/best-friend']); - $shares = $this->backend->getShares($exampleBook->getBookId()); + $shares = $this->backend->getShares($exampleBook->getResourceId()); $this->assertEquals(0, count($shares)); $books = $this->backend->getAddressBooksForUser('principals/best-friend'); @@ -432,6 +432,7 @@ class CardDavBackendTest extends TestCase { * @dataProvider dataTestSearch * * @param string $pattern + * @param array $properties * @param array $expected */ public function testSearch($pattern, $properties, $expected) { |