Skip to content

Commit 9f4c24a

Browse files
committed
Merge branch '7.4' into 8.0
* 7.4: [BrowserKit] Add browser history assertions to docs
2 parents bc39307 + dc017da commit 9f4c24a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

testing.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,6 +1039,10 @@ Browser Assertions
10391039
``assertBrowserCookieValueSame(string $name, string $expectedValue, string $path = '/', ?string $domain = null, string $message = '')``
10401040
Asserts the given cookie in the test Client is set to the expected
10411041
value.
1042+
``assertBrowserHistoryIsOnFirstPage(string $message = '')``/``assertBrowserHistoryIsNotOnFirstPage(string $message = '')``
1043+
Asserts that the browser history is (not) on the first page.
1044+
``assertBrowserHistoryIsOnLastPage(string $message = '')``/``assertBrowserHistoryIsNotOnLastPage(string $message = '')``
1045+
Asserts that the browser history is (not) on the last page.
10421046
``assertThatForClient(Constraint $constraint, string $message = '')``
10431047
Asserts the given Constraint in the Client. Useful for using your custom asserts
10441048
in the same way as built-in asserts (i.e. without passing the Client as argument)::
@@ -1049,6 +1053,10 @@ Browser Assertions
10491053
self::assertThatForClient(new SomeCustomConstraint());
10501054
}
10511055

1056+
.. versionadded:: 7.4
1057+
1058+
The ``assertBrowserHistoryIsOnFirstPage()`` and ``assertBrowserHistoryIsOnLastPage()`` assertions were introduced in Symfony 7.4.
1059+
10521060
Crawler Assertions
10531061
..................
10541062

0 commit comments

Comments
 (0)