diff --git a/core/modules/views/lib/Drupal/views/Tests/Plugin/RowEntityTest.php b/core/modules/views/lib/Drupal/views/Tests/Plugin/RowEntityTest.php index faf1395..ca826c4 100644 --- a/core/modules/views/lib/Drupal/views/Tests/Plugin/RowEntityTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/Plugin/RowEntityTest.php @@ -69,6 +69,14 @@ public function testEntityRow() { $this->content = drupal_render($this->content); $this->assertText($term->label(), 'The rendered entity appears as row in the view.'); + + // Tests the available view mode options. + $form = array(); + $form_state = array(); + $view->rowPlugin->buildOptionsForm($form, $form_state); + + $this->assertTrue(isset($form['view_mode']['options']['full']), 'Ensure that the full view mode is available'); + $this->assertTrue(isset($form['view_mode']['options']['default']), 'Ensure that the default view mode is available'); } /**