X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fsystem%2Ftests%2Fmodules%2Fsystem_test%2Fsrc%2FController%2FSystemTestController.php;fp=web%2Fcore%2Fmodules%2Fsystem%2Ftests%2Fmodules%2Fsystem_test%2Fsrc%2FController%2FSystemTestController.php;h=37eb87585d2fc22f224004dffc131b5cc381084f;hp=5e49c2403b677defc9e641483d6f39c2556ee4ed;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/modules/system/tests/modules/system_test/src/Controller/SystemTestController.php b/web/core/modules/system/tests/modules/system_test/src/Controller/SystemTestController.php index 5e49c2403..37eb87585 100644 --- a/web/core/modules/system/tests/modules/system_test/src/Controller/SystemTestController.php +++ b/web/core/modules/system/tests/modules/system_test/src/Controller/SystemTestController.php @@ -375,4 +375,11 @@ class SystemTestController extends ControllerBase { return $response; } + /** + * Returns a cacheable response with a custom cache control. + */ + public function getCacheableResponseWithCustomCacheControl() { + return new CacheableResponse('Foo', 200, ['Cache-Control' => 'bar']); + } + }