Skip to content

Commit dcc57b1

Browse files
committed
Merge pull request symfony#1257 from Sgoettschkes/2.0
Fixing description of default behaviour of testclient on redirects, see symfony#1254
2 parents 6892e96 + 0fef91e commit dcc57b1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

book/testing.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -429,16 +429,16 @@ For specific details on using the profiler inside a test, see the
429429
Redirecting
430430
~~~~~~~~~~~
431431

432-
When a request returns a redirect response, the client automatically follows
433-
it. If you want to examine the Response before redirecting, you can force
434-
the client to not follow redirects with the ``followRedirects()`` method::
435-
436-
$client->followRedirects(false);
437-
438-
When the client does not follow redirects, you can force the redirection with
439-
the ``followRedirect()`` method::
432+
When a request returns a redirect response, the client does not follow
433+
it automatically. You can examine the response and force a redirection
434+
afterwards with the ``followRedirect()`` method::
440435

441436
$crawler = $client->followRedirect();
437+
438+
If you want the client to automatically follow all redirects, you can
439+
force him with the ``followRedirects()`` method::
440+
441+
$client->followRedirects();
442442

443443
.. index::
444444
single: Tests; Crawler

0 commit comments

Comments
 (0)