@@ -174,7 +174,7 @@ public function cookie($name, $value) {
174
174
* a property. You can use various assert methods to check the
175
175
* response.
176
176
*
177
- * @param string $url The url to request.
177
+ * @param string|array $url The URL to request.
178
178
* @return void
179
179
*/
180
180
public function get ($ url ) {
@@ -188,7 +188,7 @@ public function get($url) {
188
188
* a property. You can use various assert methods to check the
189
189
* response.
190
190
*
191
- * @param string $url The url to request.
191
+ * @param string|array $url The URL to request.
192
192
* @param array $data The data for the request.
193
193
* @return void
194
194
*/
@@ -203,7 +203,7 @@ public function post($url, $data = []) {
203
203
* a property. You can use various assert methods to check the
204
204
* response.
205
205
*
206
- * @param string $url The url to request.
206
+ * @param string|array $url The URL to request.
207
207
* @param array $data The data for the request.
208
208
* @return void
209
209
*/
@@ -218,7 +218,7 @@ public function patch($url, $data = []) {
218
218
* a property. You can use various assert methods to check the
219
219
* response.
220
220
*
221
- * @param string $url The url to request.
221
+ * @param string|array $url The URL to request.
222
222
* @param array $data The data for the request.
223
223
* @return void
224
224
*/
@@ -233,7 +233,7 @@ public function put($url, $data = []) {
233
233
* a property. You can use various assert methods to check the
234
234
* response.
235
235
*
236
- * @param string $url The url to request.
236
+ * @param string|array $url The URL to request.
237
237
* @return void
238
238
*/
239
239
public function delete ($ url ) {
@@ -245,7 +245,7 @@ public function delete($url) {
245
245
*
246
246
* Receives and stores the response for future inspection.
247
247
*
248
- * @param string $url The url
248
+ * @param string|array $url The URL
249
249
* @param string $method The HTTP method
250
250
* @param array|null $data The request data.
251
251
* @return void
@@ -313,7 +313,7 @@ protected function _handleError($exception) {
313
313
/**
314
314
* Create a request object with the configured options and parameters.
315
315
*
316
- * @param string $url The url
316
+ * @param string|array $url The URL
317
317
* @param string $method The HTTP method
318
318
* @param array|null $data The request data.
319
319
* @return \Cake\Network\Request The built request.
@@ -326,7 +326,7 @@ protected function _buildRequest($url, $method, $data) {
326
326
$ session ->write ($ this ->_session );
327
327
328
328
$ props = [
329
- 'url ' => $ url ,
329
+ 'url ' => Router:: url ( $ url) ,
330
330
'post ' => $ data ,
331
331
'cookies ' => $ this ->_cookie ,
332
332
'session ' => $ session ,
0 commit comments