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
988
988
``assertResponseIsUnprocessable(string $message = '', bool ?$verbose = null) ``
989
989
Asserts the response is unprocessable (HTTP status is 422)
990
990
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
+
991
999
.. versionadded :: 7.1
992
1000
993
1001
The ``$verbose `` parameters were introduced in Symfony 7.1.
994
1002
995
1003
.. versionadded :: 7.4
996
1004
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.
1003
1006
1004
1007
Request Assertions
1005
1008
..................
You can’t perform that action at this time.
0 commit comments