diff --git a/core/modules/views/lib/Drupal/views/Tests/Plugin/ExposedFormTest.php b/core/modules/views/lib/Drupal/views/Tests/Plugin/ExposedFormTest.php index e7994f2..d491d1b 100644 --- a/core/modules/views/lib/Drupal/views/Tests/Plugin/ExposedFormTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/Plugin/ExposedFormTest.php @@ -99,7 +99,8 @@ public function testExposedFormRender() { $view = views_get_view('test_reset_button'); $this->executeView($view); $exposed_form = $view->display_handler->getPlugin('exposed_form'); - $this->drupalSetContent($exposed_form->renderExposedForm()); + $output = $exposed_form->renderExposedForm(); + $this->drupalSetContent(drupal_render($output)); $expected_id = drupal_clean_css_identifier('views-exposed-form-' . $view->storage->id() . '-' . $view->current_display); $this->assertFieldByXpath('//form/@id', $expected_id, 'Expected form ID found.');