diff --git a/core/modules/system/src/Tests/Common/RenderTest.php b/core/modules/system/src/Tests/Common/RenderTest.php index 1c0ee7b..df0278b 100644 --- a/core/modules/system/src/Tests/Common/RenderTest.php +++ b/core/modules/system/src/Tests/Common/RenderTest.php @@ -61,7 +61,7 @@ public function testProcessAttached() { $build['#attached']['drupal_process_states'][] = []; $renderer = $this->container->get('bare_html_page_renderer'); try { - $this->render($build); + $renderer->renderBarePage($build, '', $this->container->get('theme.manager')->getActiveTheme()->getName()); $this->fail("Invalid #attachment 'drupal_process_states' allowed"); } catch (\LogicException $e) {