Skip to content

Commit

Permalink
Improve contacts test by url encoding value
Browse files Browse the repository at this point in the history
  • Loading branch information
token-cjg committed Sep 24, 2024
1 parent 13adf39 commit 4355bb7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/Zendesk/API/UnitTests/Sell/ContactsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ public function testUpsert()

$encodedQueryParams = [];
foreach ($queryParams as $key => $value) {
// Encode the 'phone' query param's whitespace
if ($key === 'phone') {
$value = str_replace(' ', '%20', $value);
}
$encodedQueryParams[$key] = $value;
}

Expand Down

0 comments on commit 4355bb7

Please sign in to comment.