From 8971a86465d9eca94eaeeee5d225496f7430e8f4 Mon Sep 17 00:00:00 2001 From: webchick <drupal@webchick.net> Date: Sun, 4 Oct 2015 23:59:58 -0700 Subject: [PATCH] Issue #2575853 by DuaelFr, Lendude: Fix \Drupal\views\Tests\Plugin\DisplayPageTest::testPageRouterItems so all assertions are called --- core/modules/views/src/Tests/Plugin/DisplayPageTest.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/core/modules/views/src/Tests/Plugin/DisplayPageTest.php b/core/modules/views/src/Tests/Plugin/DisplayPageTest.php index 49151ccd5bbf..6fc4f144cce2 100644 --- a/core/modules/views/src/Tests/Plugin/DisplayPageTest.php +++ b/core/modules/views/src/Tests/Plugin/DisplayPageTest.php @@ -94,11 +94,10 @@ public function testPageRouterItems() { // Check the controller defaults. foreach ($collection as $id => $route) { - if (strpos($id, 'test_page_display_route') === 0) { - $this->assertEqual($route->getDefault('_controller'), 'Drupal\views\Routing\ViewPageController::handle'); - $this->assertEqual($route->getDefault('view_id'), 'test_page_display_route'); - $this->assertEqual($route->getDefault('display_id'), str_replace('test_page_display_route.', '', $id)); - } + $this->assertEqual($route->getDefault('_controller'), 'Drupal\views\Routing\ViewPageController::handle'); + $id_parts = explode('.', $id); + $this->assertEqual($route->getDefault('view_id'), $id_parts[1]); + $this->assertEqual($route->getDefault('display_id'), $id_parts[2]); } // Check the generated patterns and default values. -- GitLab