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 ebaa975..81da0bf 100644 --- a/core/modules/views/lib/Drupal/views/Tests/Plugin/DisplayTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/Plugin/DisplayTest.php @@ -148,12 +148,10 @@ public function testInvalidDisplayPlugin() { $this->drupalGet('test_display_invalid'); $this->assertResponse(200); - // Change the page plugin id to an invalid one. - $view = views_get_view('test_display_invalid'); - $displays = $view->storage->get('display'); - $displays['page_1']['display_plugin'] = 'invalid'; - $view->storage->set('display', $displays); - $view->save(); + // Change the page plugin id to an invalid one, bypass the entity system. + $config = config('views.view.test_display_invalid'); + $config->set('display.page_1.display_plugin', 'invalid'); + $config->save(); $this->drupalGet('test_display_invalid'); $this->assertResponse(404);