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.
Spotted in #2892821: Core modules check node module's "access content" permission for displaying things that have nothing to do with nodes - Drupal\Tests\system\Kernel\PathHooksTest test class uses incorrect value for @group annotation. "Drupal" should be replaced with "system", which is used by other test classes withing same directory.
There's probably more wrong @group
annotations out there, we should find them and fix all of them in this issue.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2917505-2.patch | 413 bytes | zaporylie |
Comments
Comment #2
zaporylieSimple patch to fix what's explained in issue summary.
Comment #3
zaporylieComment #4
dawehnerI'm curious whether we could instead of fixing a single class go through many core tests and correct the groups? I would totally imagine that there are more test classes not set up properly.
Comment #5
borisson_#4 sounds like a great idea. We don't usually do these kinds of one-offs. Setting to needs work.
Comment #13
quietone CreditAttribution: quietone as a volunteer commented@zaporylie, thanks for the report and making a patch.
That line was changed in a later more comprehensive issue #3084983: Move all the code related to path aliases to a new (required) "path_alias" module. Closing as outdated.
Thanks!