Skip to content

Commit

Permalink
Fix sell contacts test
Browse files Browse the repository at this point in the history
  • Loading branch information
token-cjg committed Sep 24, 2024
1 parent 1184245 commit ad6802b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/Zendesk/API/UnitTests/Sell/ContactsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,15 @@ public function testUpsert()
]
];

$encodedQueryParams = [];
foreach ($queryParams as $key => $value) {
$encodedQueryParams[$key] = $value;
}

$this->assertEndpointCalled(function () use ($queryParams, $postFields) {
$this->client->sell->contacts()->upsert($queryParams, $postFields);
}, '/contacts/upsert', 'POST', [
'queryParams' => $queryParams,
'queryParams' => $encodedQueryParams,
'postFields' => ['data' => $postFields],
'apiBasePath' => '/v2'
]);
Expand Down

0 comments on commit ad6802b

Please sign in to comment.