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
4 changes: 4 additions & 0 deletions en/appendices/5-3-migration-guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,7 @@ Validation

- ``ipOrRange()`` validation has has been added to check for an IP or a range (subnet).

TestSuite
---------

- `assertRedirectBack()` added to assert a successful redirect has been made to the same previous URL.
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Invalid code fencing will be fixed with #8031 merge.

3 changes: 3 additions & 0 deletions en/development/testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1509,6 +1509,9 @@ make testing responses much simpler. Some examples are::
// Check the Location header
$this->assertRedirect(['controller' => 'Articles', 'action' => 'index']);

// Check the Location header matches the same previous URL
$this->assertRedirectBack();

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

Expand Down
Loading