Skip to content

Commit

Permalink
Regression test for #27
Browse files Browse the repository at this point in the history
Have one test that runs a REPORT request on a fresh addressbook object,
so that the underlying HttpClientAdapter has not negotiated the
authentication scheme yet.
  • Loading branch information
mstilkerich committed Mar 23, 2024
1 parent e7bd1b8 commit c0d17fe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/Interop/AddressbookQueryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,11 @@ public function testAllOfPropFilterAppliesToSamePropertyValue(string $abookname,
$expCards = [ 0 ];
}
$abook = $this->createSamples($abookname);

// #27: Have one test that tries a query report on a fresh AddressbookCollection object, so that the underlying
// HttpClientAdapter has not negotiated the authentication scheme yet
$abook = new AddressbookCollection($abook->getUri(), $abook->getAccount());

$result = $abook->query([['EMAIL', ['/doe/^', '/.com/$', 'matchAll' => true]]], [], false);
$this->checkExpectedCards($abookname, $result, $expCards);
}
Expand Down

0 comments on commit c0d17fe

Please sign in to comment.