Skip to content

Commit 72558fb

Browse files
committed
docs(FrameworkBundle): allow to unverbose all the methods in BrowserKitAssertionsTrait
1 parent 0327966 commit 72558fb

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

testing.rst

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -963,11 +963,11 @@ However, Symfony provides useful shortcut methods for the most common cases:
963963
Response Assertions
964964
...................
965965

966-
``assertResponseIsSuccessful(string $message = '', bool $verbose = true)``
966+
``assertResponseIsSuccessful(string $message = '', ?bool $verbose = null)``
967967
Asserts that the response was successful (HTTP status is 2xx).
968-
``assertResponseStatusCodeSame(int $expectedCode, string $message = '', bool $verbose = true)``
968+
``assertResponseStatusCodeSame(int $expectedCode, string $message = '', ?bool $verbose = null)``
969969
Asserts a specific HTTP status code.
970-
``assertResponseRedirects(?string $expectedLocation = null, ?int $expectedCode = null, string $message = '', bool $verbose = true)``
970+
``assertResponseRedirects(?string $expectedLocation = null, ?int $expectedCode = null, string $message = '', ?bool $verbose = null)``
971971
Asserts the response is a redirect response (optionally, you can check
972972
the target location and status code). The excepted location can be either
973973
an absolute or a relative path.
@@ -985,13 +985,19 @@ Response Assertions
985985
Asserts the response format returned by the
986986
:method:`Symfony\\Component\\HttpFoundation\\Response::getFormat` method
987987
is the same as the expected value.
988-
``assertResponseIsUnprocessable(string $message = '', bool $verbose = true)``
988+
``assertResponseIsUnprocessable(string $message = '', bool ?$verbose = null)``
989989
Asserts the response is unprocessable (HTTP status is 422)
990990

991991
.. versionadded:: 7.1
992992

993993
The ``$verbose`` parameters were introduced in Symfony 7.1.
994994

995+
.. versionadded:: 7.4
996+
997+
The ``$defaultVerboseMode = true;`` attribute was introduced in
998+
:class:`Symfony\\Bundle\\FrameworkBundle\\Test\\BrowserKitAssertionsTrait`
999+
were introduced in Symfony 7.4 to define the default verbosity everywhere.
1000+
9951001
Request Assertions
9961002
..................
9971003

0 commit comments

Comments
 (0)