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.
This patch refactors \Drupal\Tests\rest\Functional\EntityResource\Block\BlockResourceTestBase::getExpectedCacheTags
to use array_diff instead of array_filter callback. See related: https://www.drupal.org/node/2843772#comment-12012346.
Comment | File | Size | Author |
---|---|---|---|
#7 | 2866252-5.patch | 934 bytes | rakesh.gectcr |
#4 | interdiff-2866252-2-4.txt | 1.33 KB | shadcn |
#4 | refactor_and_fix_code-2866252-4.patch | 928 bytes | shadcn |
#2 | refactor_and_fix_code-2866252-2.patch | 1.99 KB | shadcn |
Comments
Comment #2
shadcn CreditAttribution: shadcn at Chapter Three commentedComment #3
Wim LeersI'm concerned about the scope of changes here. Let's focus on only the one truly relevant change.
This is just such a pointless docblock. We don't have it on any of the other base test classes. Let's not add it here either.
Same for this. Needless verbosity.
And these are just whitespace changes. The same absence of whitespace exists in the other base classes.
This is a solid change however! :)
Comment #4
shadcn CreditAttribution: shadcn at Chapter Three commentedThanks for the review Wim.
1,2 and 3 were fixes from the phpcs codesniffer. I reverted them.
4 is in. New patch attached.
Comment #5
shadcn CreditAttribution: shadcn at Chapter Three commentedComment #6
Wim LeersThanks :)
Comment #7
rakesh.gectcrAccording to above comment, Only added the refactor patch. :)
Comment #8
rakesh.gectcrOops Sorry. It was a coincidence. Apologise.
Comment #10
Wim LeersComment #13
Wim LeersRetested both #4 and #7. They're both failing, because Drupal CI is crashing, hard.
Comment #15
Wim LeersComment #17
catchCommitted/pushed to 8.4.x, thanks!