@@ -103,6 +103,12 @@ public function testGet(array $config, string $slot, ResponseInterface $respondo
103103 $ this ->mock ->reset ();
104104 $ this ->mock ->append ($ respondor );
105105 $ this ->mock ->append ($ respondor );
106+ $ this ->mock ->append ($ respondor );
107+
108+ $ response = $ endpoint ->chain ('v3/merchant-service/images/{media_slot_url} ' )->get ([
109+ 'media_slot_url ' => $ slot ,
110+ ]);
111+ self ::responseAssertion ($ response );
106112
107113 $ response = $ endpoint ->chain ('v3/merchant-service/images/{media_slot_url} ' )->get ([
108114 'handler ' => $ stack ,
@@ -143,6 +149,13 @@ public function testGetAsync(array $config, string $slot, ResponseInterface $res
143149 $ this ->mock ->reset ();
144150 $ this ->mock ->append ($ respondor );
145151 $ this ->mock ->append ($ respondor );
152+ $ this ->mock ->append ($ respondor );
153+
154+ $ endpoint ->chain ('v3/merchant-service/images/{media_slot_url} ' )->getAsync ([
155+ 'media_slot_url ' => $ slot ,
156+ ])->then (static function (ResponseInterface $ response ) {
157+ self ::responseAssertion ($ response );
158+ })->wait ();
146159
147160 $ endpoint ->chain ('v3/merchant-service/images/{media_slot_url} ' )->getAsync ([
148161 'handler ' => $ stack ,
@@ -177,19 +190,37 @@ public function testUseStandardGuzzleHttpClient(array $config, string $slot, Res
177190
178191 $ this ->mock ->reset ();
179192
193+ $ this ->mock ->append ($ respondor );
194+ $ response = $ apiv3Client ->request ('GET ' , $ relativeUrl );
195+ self ::responseAssertion ($ response );
196+
180197 $ this ->mock ->append ($ respondor );
181198 $ response = $ apiv3Client ->request ('GET ' , $ relativeUrl , ['handler ' => $ stack ]);
182199 self ::responseAssertion ($ response );
183200
201+ $ this ->mock ->append ($ respondor );
202+ $ response = $ apiv3Client ->request ('GET ' , $ fullUri );
203+ self ::responseAssertion ($ response );
204+
184205 $ this ->mock ->append ($ respondor );
185206 $ response = $ apiv3Client ->request ('GET ' , $ fullUri , ['handler ' => $ stack ]);
186207 self ::responseAssertion ($ response );
187208
209+ $ this ->mock ->append ($ respondor );
210+ /** @phpstan-ignore-next-line because of \GuzzleHttp\ClientInterface no `get` method signature */
211+ $ response = $ apiv3Client ->get ($ relativeUrl );
212+ self ::responseAssertion ($ response );
213+
188214 $ this ->mock ->append ($ respondor );
189215 /** @phpstan-ignore-next-line because of \GuzzleHttp\ClientInterface no `get` method signature */
190216 $ response = $ apiv3Client ->get ($ relativeUrl , ['handler ' => $ stack ]);
191217 self ::responseAssertion ($ response );
192218
219+ $ this ->mock ->append ($ respondor );
220+ /** @phpstan-ignore-next-line because of \GuzzleHttp\ClientInterface no `get` method signature */
221+ $ response = $ apiv3Client ->get ($ fullUri );
222+ self ::responseAssertion ($ response );
223+
193224 $ this ->mock ->append ($ respondor );
194225 /** @phpstan-ignore-next-line because of \GuzzleHttp\ClientInterface no `get` method signature */
195226 $ response = $ apiv3Client ->get ($ fullUri , ['handler ' => $ stack ]);
@@ -199,17 +230,31 @@ public function testUseStandardGuzzleHttpClient(array $config, string $slot, Res
199230 self ::responseAssertion ($ response );
200231 };
201232
233+ $ this ->mock ->append ($ respondor );
234+ /** @phpstan-ignore-next-line because of \GuzzleHttp\ClientInterface no `getAsync` method signature */
235+ $ response = $ apiv3Client ->getAsync ($ fullUri )->then ($ asyncAssertion )->wait ();
236+
202237 $ this ->mock ->append ($ respondor );
203238 /** @phpstan-ignore-next-line because of \GuzzleHttp\ClientInterface no `getAsync` method signature */
204239 $ response = $ apiv3Client ->getAsync ($ fullUri , ['handler ' => $ stack ])->then ($ asyncAssertion )->wait ();
205240
241+ $ this ->mock ->append ($ respondor );
242+ /** @phpstan-ignore-next-line because of \GuzzleHttp\ClientInterface no `getAsync` method signature */
243+ $ response = $ apiv3Client ->getAsync ($ relativeUrl )->then ($ asyncAssertion )->wait ();
244+
206245 $ this ->mock ->append ($ respondor );
207246 /** @phpstan-ignore-next-line because of \GuzzleHttp\ClientInterface no `getAsync` method signature */
208247 $ response = $ apiv3Client ->getAsync ($ relativeUrl , ['handler ' => $ stack ])->then ($ asyncAssertion )->wait ();
209248
249+ $ this ->mock ->append ($ respondor );
250+ $ response = $ apiv3Client ->requestAsync ('GET ' , $ relativeUrl )->then ($ asyncAssertion )->wait ();
251+
210252 $ this ->mock ->append ($ respondor );
211253 $ response = $ apiv3Client ->requestAsync ('GET ' , $ relativeUrl , ['handler ' => $ stack ])->then ($ asyncAssertion )->wait ();
212254
255+ $ this ->mock ->append ($ respondor );
256+ $ response = $ apiv3Client ->requestAsync ('GET ' , $ fullUri )->then ($ asyncAssertion )->wait ();
257+
213258 $ this ->mock ->append ($ respondor );
214259 $ response = $ apiv3Client ->requestAsync ('GET ' , $ fullUri , ['handler ' => $ stack ])->then ($ asyncAssertion )->wait ();
215260 }
0 commit comments