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
- * ``getRequestMethod() `` - returns the HTTP method;
1475
1474
* ``getRequestUrl() `` - returns the URL the request would be sent to;
1476
1475
* ``getRequestOptions() `` - returns an array containing other information about
1477
1476
the request such as headers, query parameters, body content etc.
@@ -1488,9 +1487,6 @@ Usage example::
1488
1487
],
1489
1488
]);
1490
1489
1491
- $mockResponse->getRequestMethod();
1492
- // returns "DELETE"
1493
-
1494
1490
$mockResponse->getRequestUrl();
1495
1491
// returns "https://example.com/api/article/1337"
1496
1492
@@ -1567,7 +1563,6 @@ test it in a real application::
1567
1563
$responseData = $service->createArticle($requestData);
1568
1564
1569
1565
// Assert
1570
- self::assertSame('POST', $mockResponse->getRequestMethod());
1571
1566
self::assertSame('https://example.com/api/article', $mockResponse->getRequestUrl());
1572
1567
self::assertContains(
1573
1568
'Content-Type: application/json',
You can’t perform that action at this time.
0 commit comments