Skip to content

Commit dc017da

Browse files
committed
minor #21252 [BrowserKit] Add browser history assertions to docs (santysisi)
This PR was merged into the 7.4 branch. Discussion ---------- [BrowserKit] Add browser history assertions to docs This PR adds documentation for the new `assertBrowserHistoryIsOnFirstPage` and `assertBrowserHistoryIsOnLastPage` assertions. Commits ------- 65ca876 [BrowserKit] Add browser history assertions to docs
2 parents 26a8d9c + 65ca876 commit dc017da

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
@@ -1047,6 +1047,10 @@ Browser Assertions
10471047
``assertBrowserCookieValueSame(string $name, string $expectedValue, string $path = '/', ?string $domain = null, string $message = '')``
10481048
Asserts the given cookie in the test Client is set to the expected
10491049
value.
1050+
``assertBrowserHistoryIsOnFirstPage(string $message = '')``/``assertBrowserHistoryIsNotOnFirstPage(string $message = '')``
1051+
Asserts that the browser history is (not) on the first page.
1052+
``assertBrowserHistoryIsOnLastPage(string $message = '')``/``assertBrowserHistoryIsNotOnLastPage(string $message = '')``
1053+
Asserts that the browser history is (not) on the last page.
10501054
``assertThatForClient(Constraint $constraint, string $message = '')``
10511055
Asserts the given Constraint in the Client. Useful for using your custom asserts
10521056
in the same way as built-in asserts (i.e. without passing the Client as argument)::
@@ -1057,6 +1061,10 @@ Browser Assertions
10571061
self::assertThatForClient(new SomeCustomConstraint());
10581062
}
10591063

1064+
.. versionadded:: 7.4
1065+
1066+
The ``assertBrowserHistoryIsOnFirstPage()`` and ``assertBrowserHistoryIsOnLastPage()`` assertions were introduced in Symfony 7.4.
1067+
10601068
Crawler Assertions
10611069
..................
10621070

0 commit comments

Comments
 (0)