diff --git a/core/tests/Drupal/KernelTests/Core/Path/PathValidatorTest.php b/core/tests/Drupal/KernelTests/Core/Path/PathValidatorTest.php index a656671567f2..34a7bdf0006b 100644 --- a/core/tests/Drupal/KernelTests/Core/Path/PathValidatorTest.php +++ b/core/tests/Drupal/KernelTests/Core/Path/PathValidatorTest.php @@ -48,8 +48,9 @@ class PathValidatorTest extends KernelTestBase { 'PUT', 'PATCH', 'DELETE', - // Used in CLI context. - NULL, + // NULL is used in CLI context which results in a request method of an + // empty string. + '', // If no request was even pushed onto the request stack, and hence. FALSE, ];