File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -988,18 +988,21 @@ Response Assertions
988988``assertResponseIsUnprocessable(string $message = '', bool ?$verbose = null) ``
989989 Asserts the response is unprocessable (HTTP status is 422)
990990
991+ By default, these assert methods provide detailed error messages when they fail.
992+ You can control the verbosity level using the optional ``verbose `` argument in
993+ each assert method. To set this verbosity level globally, use the
994+ ``setBrowserKitAssertionsAsVerbose() `` method from the
995+ :class: `Symfony\\ Bundle\\ FrameworkBundle\\ Test\\ BrowserKitAssertionsTrait `::
996+
997+ BrowserKitAssertionsTrait::setBrowserKitAssertionsAsVerbose(false);
998+
991999.. versionadded :: 7.1
9921000
9931001 The ``$verbose `` parameters were introduced in Symfony 7.1.
9941002
9951003.. versionadded :: 7.4
9961004
997- The ``$defaultVerboseMode = true; `` attribute was introduced in
998- :class: `Symfony\\ Bundle\\ FrameworkBundle\\ Test\\ BrowserKitAssertionsTrait `
999- in Symfony 7.4. This attribute allows you to define the default verbosity
1000- for all applicable assertions within the trait, overriding the initial `null `
1001- value of the `$verbose ` parameter.
1002-
1005+ The ``setBrowserKitAssertionsAsVerbose() `` method ws introduced in Symfony 7.4.
10031006
10041007Request Assertions
10051008..................
You can’t perform that action at this time.
0 commit comments