Skip to content
Snippets Groups Projects
Commit 8971a864 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2575853 by DuaelFr, Lendude: Fix...

Issue #2575853 by DuaelFr, Lendude: Fix \Drupal\views\Tests\Plugin\DisplayPageTest::testPageRouterItems so all assertions are called
parent f7716551
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment