diff --git a/core/modules/system/tests/modules/system_test/src/Controller/SystemTestController.php b/core/modules/system/tests/modules/system_test/src/Controller/SystemTestController.php index 7f32ef3..37eb875 100644 --- a/core/modules/system/tests/modules/system_test/src/Controller/SystemTestController.php +++ b/core/modules/system/tests/modules/system_test/src/Controller/SystemTestController.php @@ -378,7 +378,7 @@ public function getTestHeader(Request $request) { /** * Returns a cacheable response with a custom cache control. */ - public function getCacheableWithCustomCacheControl() { + public function getCacheableResponseWithCustomCacheControl() { return new CacheableResponse('Foo', 200, ['Cache-Control' => 'bar']); } diff --git a/core/modules/system/tests/modules/system_test/system_test.routing.yml b/core/modules/system/tests/modules/system_test/system_test.routing.yml index 2b55df8..b7cba07 100644 --- a/core/modules/system/tests/modules/system_test/system_test.routing.yml +++ b/core/modules/system/tests/modules/system_test/system_test.routing.yml @@ -200,7 +200,7 @@ system_test.echo_utf8: system_test.custom_cache_control: path: '/system-test/custom-cache-control' defaults: - _title: 'Cacheable response custom cache control' - _controller: '\Drupal\system_test\Controller\SystemTestController::getCacheableWithCustomCacheControl' + _title: 'Cacheable response with custom cache control' + _controller: '\Drupal\system_test\Controller\SystemTestController::getCacheableResponseWithCustomCacheControl' requirements: _access: 'TRUE'