diff --git a/core/modules/views/lib/Drupal/views/Tests/Plugin/StyleTest.php b/core/modules/views/lib/Drupal/views/Tests/Plugin/StyleTest.php index 2a19bc8..f567068 100644 --- a/core/modules/views/lib/Drupal/views/Tests/Plugin/StyleTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/Plugin/StyleTest.php @@ -228,8 +228,7 @@ function testCustomRowClasses() { $view->style_plugin->options['row_class'] = $random_name . " test-token-[name]"; $output = $view->preview(); - $rendered_output = drupal_render($preview); - $this->storeViewPreview($rendered_output); + $this->storeViewPreview(drupal_render($output)); $rows = $this->elements->body->div->div->div; $count = 0; diff --git a/core/modules/views/lib/Drupal/views/Tests/Plugin/StyleUnformattedTest.php b/core/modules/views/lib/Drupal/views/Tests/Plugin/StyleUnformattedTest.php index 8d105a7..72d6a93 100644 --- a/core/modules/views/lib/Drupal/views/Tests/Plugin/StyleUnformattedTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/Plugin/StyleUnformattedTest.php @@ -34,8 +34,7 @@ function testDefaultRowClasses() { $view = views_get_view('test_view'); $view->setDisplay(); $output = $view->preview(); - $rendered_output = drupal_render($preview); - $this->storeViewPreview($rendered_output); + $this->storeViewPreview(drupal_render($output)); $rows = $this->elements->body->div->div->div; $count = 0; diff --git a/core/modules/views/lib/Drupal/views/Tests/ViewRenderTest.php b/core/modules/views/lib/Drupal/views/Tests/ViewRenderTest.php index c3fd6a4..8c7f071 100644 --- a/core/modules/views/lib/Drupal/views/Tests/ViewRenderTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/ViewRenderTest.php @@ -42,7 +42,7 @@ public function testRender() { // Make sure that the rendering just calls the preprocess function once. $view = views_get_view('test_view_render'); $output = $view->preview(); - drupal_render($preview); + drupal_render($output); $this->assertEqual(state()->get('views_render.test'), 1); }