8000 minor #8218 Added a note about the new behavior of BrowserKit and red… · symfony/symfony-docs@5a7d286 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5a7d286

Browse files
committed
minor #8218 Added a note about the new behavior of BrowserKit and redirects (javiereguiluz)
This PR was submitted for the master branch but it was merged into the 3.4 branch instead (closes #8218). Discussion ---------- Added a note about the new behavior of BrowserKit and redirects This fixes #8164. I couldn't find any mention to the old behavior, but I consider important to add a note about this to help users upgrading to newer Symfony versions and facing failing tests. Commits ------- 48553b7 Added a note about the new behavior of BrowserKit and redirects
2 parents f32a14c + 48553b7 commit 5a7d286

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

testing.rst

Lines changed: 5 additions & 0 deletions
421
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,11 @@ The Client supports many operations that can be done in a real browser::
421
// Clears all cookies and the history
422422
$client->restart();
423423

424+
.. versionadded:: 3.4
425+
Starting from Symfony 3.4, the ``back()`` and ``forward()`` methods skip the
426+
redirects that may have occurred when requesting a URL, as normal browsers
427+
do. In previous Symfony versions they weren't skipped.
428+
424429
Accessing Internal Objects
425430
~~~~~~~~~~~~~~~~~~~~~~~~~~
426431

0 commit comments

Comments
 (0)
0