From 65ca87649ec33f0efc03b4ef54692a260623f8e9 Mon Sep 17 00:00:00 2001 From: Santiago San Martin Date: Sat, 26 Jul 2025 14:26:39 -0300 Subject: [PATCH] [BrowserKit] Add browser history assertions to docs --- testing.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/testing.rst b/testing.rst index 539a8161157..a25cec26ae4 100644 --- a/testing.rst +++ b/testing.rst @@ -1047,6 +1047,10 @@ Browser Assertions ``assertBrowserCookieValueSame(string $name, string $expectedValue, string $path = '/', ?string $domain = null, string $message = '')`` Asserts the given cookie in the test Client is set to the expected value. +``assertBrowserHistoryIsOnFirstPage(string $message = '')``/``assertBrowserHistoryIsNotOnFirstPage(string $message = '')`` + Asserts that the browser history is (not) on the first page. +``assertBrowserHistoryIsOnLastPage(string $message = '')``/``assertBrowserHistoryIsNotOnLastPage(string $message = '')`` + Asserts that the browser history is (not) on the last page. ``assertThatForClient(Constraint $constraint, string $message = '')`` Asserts the given Constraint in the Client. Useful for using your custom asserts in the same way as built-in asserts (i.e. without passing the Client as argument):: @@ -1057,6 +1061,10 @@ Browser Assertions self::assertThatForClient(new SomeCustomConstraint()); } +.. versionadded:: 7.4 + + The ``assertBrowserHistoryIsOnFirstPage()`` and ``assertBrowserHistoryIsOnLastPage()`` assertions were introduced in Symfony 7.4. + Crawler Assertions .................. pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy