Problem/Motivation
One of the test assertions introduced in #2443679: PostgreSQL: Fix taxonomy\Tests\TermTest to EntityQueryTest is tautologic, i.e. it will always pass, even if the underlying code is broken again.
EntityQueryTest::assertResult() works with $this->queryResults so in order for it to work correctly, you previously need to do $this->queryResults = $query->execute();. This is missed in one case. Because the assertion following this is identical to the previous assertion it passes, because it works with the previous query results.
Proposed resolution
Change the following lines (starting 225) in core/modules/system/src/Tests/Entity/EntityQueryTest.php:
$query
->condition($group_blue)
->condition($group_red)
->sort('id')
->execute();
to
$this->queryResults = $query
->condition($group_blue)
->condition($group_red)
->sort('id')
->execute();
Remaining tasks
Contributor tasks needed
| Task |
Novice task? |
Contributor instructions |
Complete? |
| Create a patch |
|
Instructions |
|
| Review patch to ensure that it fixes the issue, stays within scope, is properly documented, and follows coding standards |
|
Instructions |
|
User interface changes
None.
API changes
None.
Data model changes
None.
Beta phase evaluation
Comments
Comment #1
chx commentedComment #2
yesct commentedadding links to contributor task documents (note the dreditor insert tasks button is great to help automate adding links to tasks documents)
Comment #3
sdstyles commentedCreated the patch
Comment #4
borisson_Setting issue status to needs review, so the testbot can verify this.
Comment #5
tstoeckler@sdstyles: Can you roll the patch again from the root of the Drupal repository?
These lines should look like
Fore more information see https://www.drupal.org/patch/create
Comment #6
sdstyles commentedRe-rolled #3
Comment #7
sdstyles commentedComment #9
chx commentedThanks for the quick reroll, this looks great.
Comment #10
alexpottCommitted 3bc6dc1 and pushed to 8.0.x. Thanks!
Postgres still passes.