summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/rest
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/rest')
-rw-r--r--core/modules/rest/tests/src/Functional/CookieResourceTestTrait.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/modules/rest/tests/src/Functional/CookieResourceTestTrait.php b/core/modules/rest/tests/src/Functional/CookieResourceTestTrait.php
index b296446affbd..07bee95122cd 100644
--- a/core/modules/rest/tests/src/Functional/CookieResourceTestTrait.php
+++ b/core/modules/rest/tests/src/Functional/CookieResourceTestTrait.php
@@ -54,7 +54,7 @@ trait CookieResourceTestTrait {
/**
* {@inheritdoc}
*/
- protected function initAuthentication() {
+ protected function initAuthentication(): void {
$user_login_url = Url::fromRoute('user.login.http')
->setRouteParameter('_format', static::$format);
@@ -93,7 +93,7 @@ trait CookieResourceTestTrait {
/**
* {@inheritdoc}
*/
- protected function assertResponseWhenMissingAuthentication($method, ResponseInterface $response) {
+ protected function assertResponseWhenMissingAuthentication($method, ResponseInterface $response): void {
// Requests needing cookie authentication but missing it results in a 403
// response. The cookie authentication mechanism sets no response message.
// Hence, effectively, this is just the 403 response that one gets as the
@@ -121,7 +121,7 @@ trait CookieResourceTestTrait {
/**
* {@inheritdoc}
*/
- protected function assertAuthenticationEdgeCases($method, Url $url, array $request_options) {
+ protected function assertAuthenticationEdgeCases($method, Url $url, array $request_options): void {
// X-CSRF-Token request header is unnecessary for safe and side effect-free
// HTTP methods. No need for additional assertions.
// @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html