Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion en/appendices/5-3-migration-guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,5 @@ Validation
TestSuite
---------

- `assertRedirectBack()` added to assert a successful redirect has been made to the same previous URL.
- ``assertRedirectBack()`` added to assert a successful redirect has been made to the same previous URL.
- ``assertRedirectBackToReferer()`` added to assert a successful redirect has been made to the referer URL.
3 changes: 3 additions & 0 deletions en/development/testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1512,6 +1512,9 @@ make testing responses much simpler. Some examples are::
// Check the Location header matches the same previous URL
$this->assertRedirectBack();

// Check the Location header matches the referer URL
$this->assertRedirectBackToReferer();

// Check that no Location header has been set
$this->assertNoRedirect();

Expand Down
Loading