diff --git a/src/WalmartApiClient/Http/TransportService.php b/src/WalmartApiClient/Http/TransportService.php index f991231..e6708b9 100644 --- a/src/WalmartApiClient/Http/TransportService.php +++ b/src/WalmartApiClient/Http/TransportService.php @@ -91,8 +91,7 @@ protected function composeUrl($uri, array $constraints = []) $constraints['apiKey'] = $this->apiKey; $constraints['format'] = 'json'; - if (!empty($this->apiLinkShareId) && isset($constraints['includeLinkShare']) && $constraints['includeLinkShare'] === true) { - unset($constraints['includeLinkShare']); + if (!empty($this->apiLinkShareId)) { $constraints['lsPublisherId'] = $this->apiLinkShareId; } diff --git a/tests/WalmartApiClient/Http/TransportServiceTest.php b/tests/WalmartApiClient/Http/TransportServiceTest.php index 54a90ad..752e149 100644 --- a/tests/WalmartApiClient/Http/TransportServiceTest.php +++ b/tests/WalmartApiClient/Http/TransportServiceTest.php @@ -108,12 +108,10 @@ public function testCallApiWithLinkShare() $apiKey = 'walmartapikey'; $apiLinkShare = 'lsid'; - $constraints = ['includeLinkShare' => true]; - $client = new \WalmartApiClient\Http\TransportService($guzzle, $handler, $apiKey, $apiLinkShare); $expected = ['super' => 'cool']; - $actual = $client->callApi('uri', $constraints); + $actual = $client->callApi('uri', []); $this->assertTrue($actual === $expected); }