Skip to content

Commit

Permalink
Fix tests: createCard() may return an URI (no full URL) handle it
Browse files Browse the repository at this point in the history
The accounts used by the test setup lack a base URL, thus an URI that
lacks the protocol/server part cannot be completed.
  • Loading branch information
mstilkerich committed Oct 3, 2021
1 parent 4f302b1 commit 4083b47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/interop/AddressbookCollectionTest.php
Expand Up @@ -141,6 +141,7 @@ public function testCanCreateWebDavResourceForNonCollection(string $abookname, a
$this->assertInstanceOf(AddressbookCollection::class, $abook);
$this->assertArrayHasKey($abookname, self::$insertedCards);
$cardUri = self::$insertedCards[$abookname]['uri'];
$cardUri = TestInfrastructure::normalizeUri($abook, $cardUri);

$resource = WebDavResource::createInstance($cardUri, $abook->getAccount());
$this->assertSame(WebDavResource::class, get_class($resource));
Expand Down

0 comments on commit 4083b47

Please sign in to comment.