We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 65d3246 + 8e51670 commit 7be77a4Copy full SHA for 7be77a4
2 files changed
en/appendices/5-3-migration-guide.rst
@@ -61,3 +61,7 @@ Validation
61
62
- ``ipOrRange()`` validation has has been added to check for an IP or a range (subnet).
63
64
+TestSuite
65
+---------
66
+
67
+- `assertRedirectBack()` added to assert a successful redirect has been made to the same previous URL.
en/development/testing.rst
@@ -1519,6 +1519,9 @@ make testing responses much simpler. Some examples are::
1519
// Check the Location header
1520
$this->assertRedirect(['controller' => 'Articles', 'action' => 'index']);
1521
1522
+ // Check the Location header matches the same previous URL
1523
+ $this->assertRedirectBack();
1524
1525
// Check that no Location header has been set
1526
$this->assertNoRedirect();
1527
0 commit comments