Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
As found in [#] some assertions in \Drupal\views\Tests\Plugin\DisplayPageTest::testPageRouterItems are never called as the views routes ids changed a while ago. Even if they were called, they are not accurate anymore so they would fail.
Proposed resolution
Fix the condition and the assertions.
Remaining tasks
Upload the patch- Wait until the testbot is happy
- Commit
User interface changes
None.
API changes
None.
Data model changes
None.
Beta phase evaluation
Issue category | Bug because a part of the test does not work as expected |
---|---|
Issue priority | Normal because the test is just outdated but the tested code still works |
Unfrozen changes | Unfrozen because it only changes tests. |
Comment | File | Size | Author |
---|---|---|---|
#2 | views-tests-fix-2575853-2.patch | 1.15 KB | DuaelFr |
Comments
Comment #2
DuaelFrComment #3
LendudeLooks good, testbot happy.
Tested locally that without the fix, when you change the assertion to
$this->assertEqual($route->getDefault('_controller'), '!!SHOULD FAIL!!');
it still passes happily. So yeah, without the fix the assertions are never done.
Comment #5
DuaelFrUnable to reproduce that test failure locally on HEAD.
Comment #7
Lenduderandom fails.
Comment #8
webchickWow, nice catch.
Committed and pushed to 8.0.x. Thanks!