Skip to content

Commit 1a5f2fe

Browse files
committed
minor #16079 add ResponseIsUnprocessable assertion doc (zairigimad)
This PR was merged into the 5.4 branch. Discussion ---------- add ResponseIsUnprocessable assertion doc the issue related #16005 <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `5.x` for features of unreleased versions). --> Commits ------- f9f61db Update testing.rst
2 parents 263bdd7 + f9f61db commit 1a5f2fe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

testing.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -899,10 +899,16 @@ Response Assertions
899899
Asserts the response format returned by the
900900
:method:`Symfony\\Component\\HttpFoundation\\Response::getFormat` method
901901
is the same as the expected value.
902+
``assertResponseIsUnprocessable(string $message = '')``
903+
Asserts the response is unprocessable (HTTP status is 422)
902904

903905
.. versionadded:: 5.3
904906

905907
The ``assertResponseFormatSame()`` method was introduced in Symfony 5.3.
908+
909+
.. versionadded:: 5.4
910+
911+
The ``assertResponseIsUnprocessable()`` method was introduced in Symfony 5.4.
906912

907913
Request Assertions
908914
..................

0 commit comments

Comments
 (0)