diff --git a/core/modules/views/lib/Drupal/views/Tests/Plugin/DisplayTest.php b/core/modules/views/lib/Drupal/views/Tests/Plugin/DisplayTest.php index 81da0bf..70eae4a 100644 --- a/core/modules/views/lib/Drupal/views/Tests/Plugin/DisplayTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/Plugin/DisplayTest.php @@ -26,7 +26,7 @@ class DisplayTest extends PluginTestBase { * * @var array */ - public static $modules = array('views_ui'); + public static $modules = array('views_ui', 'node'); public static function getInfo() { return array( @@ -154,7 +154,7 @@ public function testInvalidDisplayPlugin() { $config->save(); $this->drupalGet('test_display_invalid'); - $this->assertResponse(404); + $this->assertResponse(200); $this->assertText(t('The plugin (invalid) did not specify an instance class.')); } diff --git a/core/modules/views/tests/views_test_config/test_views/views.view.test_display_invalid.yml b/core/modules/views/tests/views_test_config/test_views/views.view.test_display_invalid.yml index 4ee1477..39a4c6d 100644 --- a/core/modules/views/tests/views_test_config/test_views/views.view.test_display_invalid.yml +++ b/core/modules/views/tests/views_test_config/test_views/views.view.test_display_invalid.yml @@ -1,5 +1,5 @@ api_version: '3.0' -base_table: views_test_data +base_table: node core: '8' description: '' status: '1' @@ -10,9 +10,9 @@ display: type: fields fields: id: - id: id - table: views_test_data - field: id + id: nid + table: node + field: nid plugin_id: numeric display_plugin: default display_title: Master