Skip to content

Commit 90c38d0

Browse files
committed
feature #18953 [FrameworkBundle] Allow BrowserKit relative URL redirect assert (alexandre-daubois)
This PR was merged into the 6.4 branch. Discussion ---------- [FrameworkBundle] Allow BrowserKit relative URL redirect assert Fix #18947 Commits ------- 189d0af [FrameworkBundle] Allow BrowserKit relative URL redirect assert
2 parents 2ff728f + 189d0af commit 90c38d0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

testing.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,8 @@ Response Assertions
978978
Asserts a specific HTTP status code.
979979
``assertResponseRedirects(string $expectedLocation = null, int $expectedCode = null, string $message = '')``
980980
Asserts the response is a redirect response (optionally, you can check
981-
the target location and status code).
981+
the target location and status code). The excepted location can be either
982+
an absolute or a relative path.
982983
``assertResponseHasHeader(string $headerName, string $message = '')``/``assertResponseNotHasHeader(string $headerName, string $message = '')``
983984
Asserts the given header is (not) available on the response, e.g. ``assertResponseHasHeader('content-type');``.
984985
``assertResponseHeaderSame(string $headerName, string $expectedValue, string $message = '')``/``assertResponseHeaderNotSame(string $headerName, string $expectedValue, string $message = '')``
@@ -996,6 +997,10 @@ Response Assertions
996997
``assertResponseIsUnprocessable(string $message = '')``
997998
Asserts the response is unprocessable (HTTP status is 422)
998999

1000+
.. versionadded:: 6.4
1001+
The support for relative path in ``assertResponseRedirects()`` was introduced
1002+
in Symfony 6.4.
1003+
9991004
Request Assertions
10001005
..................
10011006

0 commit comments

Comments
 (0)