diff --git a/testing.rst b/testing.rst index 4f8c64f89bd..d1dc6d0e365 100644 --- a/testing.rst +++ b/testing.rst @@ -1020,6 +1020,8 @@ Crawler Assertions ``assertSelectorExists(string $selector, string $message = '')``/``assertSelectorNotExists(string $selector, string $message = '')`` Asserts that the given selector does (not) match at least one element in the response. +``assertSelectorCount(int $expectedCount, string $selector, string $message = '')`` + Asserts that the expected number of selector elements are in the response ``assertSelectorTextContains(string $selector, string $text, string $message = '')``/``assertSelectorTextNotContains(string $selector, string $text, string $message = '')`` Asserts that the first element matching the given selector does (not) contain the expected text. @@ -1039,6 +1041,10 @@ Crawler Assertions Asserts that value of the field of the first form matching the given selector does (not) equal the expected value. +.. versionadded:: 6.3 + + The ``assertSelectorCount()`` method was introduced in Symfony 6.3. + Mailer Assertions .................