diff --git a/testing.rst b/testing.rst index df24c4f8601..5e59ed56b1d 100644 --- a/testing.rst +++ b/testing.rst @@ -925,7 +925,8 @@ Response Assertions Asserts a specific HTTP status code. ``assertResponseRedirects(string $expectedLocation = null, int $expectedCode = null, string $message = '')`` Asserts the response is a redirect response (optionally, you can check - the target location and status code). + the target location and status code). The excepted location can be either + an absolute or a relative path. ``assertResponseHasHeader(string $headerName, string $message = '')``/``assertResponseNotHasHeader(string $headerName, string $message = '')`` Asserts the given header is (not) available on the response, e.g. ``assertResponseHasHeader('content-type');``. ``assertResponseHeaderSame(string $headerName, string $expectedValue, string $message = '')``/``assertResponseHeaderNotSame(string $headerName, string $expectedValue, string $message = '')`` @@ -943,6 +944,10 @@ Response Assertions ``assertResponseIsUnprocessable(string $message = '')`` Asserts the response is unprocessable (HTTP status is 422) +.. versionadded:: 6.4 + The support for relative path in ``assertResponseRedirects()`` was introduced + in Symfony 6.4. + Request Assertions .................. pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy