Skip to content

Commit

Permalink
add tests for new contact filters
Browse files Browse the repository at this point in the history
  • Loading branch information
Sysix committed Apr 13, 2024
1 parent e435e1a commit 1c073d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/Clients/ContactTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,16 @@ public function testGetPageWithFilters(): void
{
[$api, $client] = $this->createClientMockObject(Contact::class);

$client->email = '[email protected]';
$client->name = 'John Doe';
$client->number = 12345;
$client->customer = true;
$client->vendor = false;

$client->getPage(0);

$this->assertEquals(
$api->apiUrl . '/v1/contacts?page=0&number=12345&customer=1&vendor=0&size=100',
$api->apiUrl . '/v1/contacts?page=0&email=john.doe%40example.com&name=John+Doe&number=12345&customer=1&vendor=0&size=100',
$api->getRequest()->getUri()->__toString()
);
}
Expand Down

0 comments on commit 1c073d3

Please sign in to comment.