Skip to content

Commit 1c073d3

Browse files
committed
add tests for new contact filters
1 parent e435e1a commit 1c073d3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/Clients/ContactTest.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,16 @@ public function testGetPageWithFilters(): void
2929
{
3030
[$api, $client] = $this->createClientMockObject(Contact::class);
3131

32+
$client->email = 'john.doe@example.com';
33+
$client->name = 'John Doe';
3234
$client->number = 12345;
3335
$client->customer = true;
3436
$client->vendor = false;
3537

3638
$client->getPage(0);
3739

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

0 commit comments

Comments
 (0)