Skip to content

[Testing] Add link request method & add type hint #17221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ into your Symfony application::

$crawler = $client->request('GET', '/post/hello-world');

The ``request()`` method takes the HTTP method and a URL as arguments and
The :method:`request() <Symfony\\Component\\BrowserKit\\AbstractBrowser::request>` method takes the HTTP method and a URL as arguments and
returns a ``Crawler`` instance.

.. tip::
Expand All @@ -513,14 +513,14 @@ returns a ``Crawler`` instance.
The full signature of the ``request()`` method is::

request(
$method,
$uri,
string $method,
string $uri,
array $parameters = [],
array $files = [],
array $server = [],
$content = null,
$changeHistory = true
)
string $content = null,
bool $changeHistory = true
): Crawler

This allows you to create all types of requests you can think of:

Expand Down