Commit 5f65d693 authored by alexpott's avatar alexpott

Issue #2661470 by andypost, lauriii: KernelTestBase::render passes wrong...

Issue #2661470 by andypost, lauriii: KernelTestBase::render passes wrong values as a parameter for BareHtmlPageRenderer::renderBarePage
parent 463d8440
......@@ -610,9 +610,7 @@ protected function registerStreamWrapper($scheme, $class, $type = StreamWrapperI
protected function render(array &$elements) {
// Use the bare HTML page renderer to render our links.
$renderer = $this->container->get('bare_html_page_renderer');
$response = $renderer->renderBarePage(
$elements, '', $this->container->get('theme.manager')->getActiveTheme()->getName()
);
$response = $renderer->renderBarePage($elements, '', 'maintenance_page');
// Glean the content from the response object.
$content = $response->getContent();
......
......@@ -63,9 +63,7 @@ function testBasicFeedAddNoTitle() {
// Use the bare HTML page renderer to render our links.
$renderer = $this->container->get('bare_html_page_renderer');
$response = $renderer->renderBarePage(
$build, '', $this->container->get('theme.manager')->getActiveTheme()->getName()
);
$response = $renderer->renderBarePage($build, '', 'maintenance_page');
// Glean the content from the response object.
$this->setRawContent($response->getContent());
// Assert that the content contains the RSS links we specified.
......
......@@ -57,7 +57,7 @@ public function testProcessAttached() {
$build['#attached']['drupal_process_states'][] = [];
$renderer = $this->container->get('bare_html_page_renderer');
try {
$renderer->renderBarePage($build, '', $this->container->get('theme.manager')->getActiveTheme()->getName());
$renderer->renderBarePage($build, '', 'maintenance_page');
$this->fail("Invalid #attachment 'drupal_process_states' allowed");
}
catch (\LogicException $e) {
......
......@@ -981,9 +981,7 @@ protected function render(array &$elements) {
// Use the bare HTML page renderer to render our links.
$renderer = $this->container->get('bare_html_page_renderer');
$response = $renderer->renderBarePage(
$elements, '', $this->container->get('theme.manager')->getActiveTheme()->getName()
);
$response = $renderer->renderBarePage($elements, '', 'maintenance_page');
// Glean the content from the response object.
$content = $response->getContent();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment