File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -1471,7 +1471,6 @@ Testing Request Data
1471
1471
1472
1472
The ``MockResponse `` class comes with some helper methods to test the request:
1473
1473
1474
- * ``getRequestUrl() `` - returns the URL the request would be sent to;
1475
1474
* ``getRequestOptions() `` - returns an array containing other information about
1476
1475
the request such as headers, query parameters, body content etc.
1477
1476
@@ -1487,9 +1486,6 @@ Usage example::
1487
1486
],
1488
1487
]);
1489
1488
1490
- $mockResponse->getRequestUrl();
1491
- // returns "https://example.com/api/article/1337"
1492
-
1493
1489
$mockResponse->getRequestOptions()['headers'];
1494
1490
// returns ["Accept: */*", "Authorization: Basic YWxhZGRpbjpvcGVuc2VzYW1l"]
1495
1491
@@ -1563,7 +1559,6 @@ test it in a real application::
1563
1559
$responseData = $service->createArticle($requestData);
1564
1560
1565
1561
// Assert
1566
- self::assertSame('https://example.com/api/article', $mockResponse->getRequestUrl());
1567
1562
self::assertContains(
1568
1563
'Content-Type: application/json',
1569
1564
$mockResponse->getRequestOptions()['headers']
You can’t perform that action at this time.
0 commit comments