File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -1837,8 +1837,6 @@ Testing Request Data
18371837
18381838The ``MockResponse `` class comes with some helper methods to test the request:
18391839
1840- * ``getRequestMethod() `` - returns the HTTP method;
1841- * ``getRequestUrl() `` - returns the URL the request would be sent to;
18421840* ``getRequestOptions() `` - returns an array containing other information about
18431841 the request such as headers, query parameters, body content etc.
18441842
@@ -1854,12 +1852,6 @@ Usage example::
18541852 ],
18551853 ]);
18561854
1857- $mockResponse->getRequestMethod();
1858- // returns "DELETE"
1859-
1860- $mockResponse->getRequestUrl();
1861- // returns "https://example.com/api/article/1337"
1862-
18631855 $mockResponse->getRequestOptions()['headers'];
18641856 // returns ["Accept: */*", "Authorization: Basic YWxhZGRpbjpvcGVuc2VzYW1l"]
18651857
@@ -1933,8 +1925,6 @@ test it in a real application::
19331925 $responseData = $service->createArticle($requestData);
19341926
19351927 // Assert
1936- self::assertSame('POST', $mockResponse->getRequestMethod());
1937- self::assertSame('https://example.com/api/article', $mockResponse->getRequestUrl());
19381928 self::assertContains(
19391929 'Content-Type: application/json',
19401930 $mockResponse->getRequestOptions()['headers']
You can’t perform that action at this time.
0 commit comments