diff --git a/core/modules/system/tests/modules/system_test/lib/Drupal/system_test/Controller/PageCacheAcceptHeaderController.php b/core/modules/system/tests/modules/system_test/lib/Drupal/system_test/Controller/PageCacheAcceptHeaderController.php index cc3b231..43cded1 100644 --- a/core/modules/system/tests/modules/system_test/lib/Drupal/system_test/Controller/PageCacheAcceptHeaderController.php +++ b/core/modules/system/tests/modules/system_test/lib/Drupal/system_test/Controller/PageCacheAcceptHeaderController.php @@ -9,6 +9,7 @@ use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\JsonResponse; +use Symfony\Component\HttpFoundation\Response; /** * Defines a controller to respond the page cache accept header test. @@ -28,7 +29,7 @@ public function content(Request $request) { return new JsonResponse(array('content' => 'oh hai this is json')); } else { - return "

oh hai this is html.

"; + return new Response("

oh hai this is html.

"); } } } diff --git a/core/modules/system/tests/modules/theme_test/theme_test.module b/core/modules/system/tests/modules/theme_test/theme_test.module index 40a78f3..2fa4528 100644 --- a/core/modules/system/tests/modules/theme_test/theme_test.module +++ b/core/modules/system/tests/modules/theme_test/theme_test.module @@ -156,10 +156,7 @@ function theme_test_preprocess_html(&$variables) { $variables['html_attributes']['theme_test_html_attribute'] = 'theme test html attribute value'; $variables['attributes']['theme_test_body_attribute'] = 'theme test body attribute value'; - // Check that the page variable is not flattened yet. - if (is_array($variables['page'])) { - $variables['attributes']['theme_test_page_variable'] = 'Page variable is an array.'; - } + $variables['attributes']['theme_test_page_variable'] = 'Page variable is an array.'; } /**