EntityPublicationTest missing @group annotation causing MissingGroupException

Created on 19 November 2020, almost 5 years ago
Updated 9 September 2025, 5 days ago

Problem/Motivation

The \Drupal\Tests\permissions_by_entity\Kernel\EntityPublicationTest test is missing an @group annotation in its docblock.

This causes a Drupal\Core\Test\Exception\MissingGroupException: Missing @group annotation in Drupal\Tests\permissions_by_entity\Kernel\EntityPublicationTest in Drupal\Core\Test\TestDiscovery::getTestInfo() (line 356 of core/lib/Drupal/Core/Test/TestDiscovery.php). error when Drupal\simpletest\TestDiscovery->getTestClasses() (Line: 157) runs.

Steps to reproduce

  1. Download Drupal 8.9.9, this module, and all its dependencies.
  2. Install with the Standard install profile, enable this module, enable simpletest module
  3. Go to /admin/config/development/testing:
    • Expected result: See a list of tests to run, one of which is the aforementioned EntityPublicationTest
    • Actual result: See a WSOD. If debugging is enabled, see the aforementioned MissingGroupException

Proposed resolution

Add a group annotation.

Remaining tasks

  1. Review and feedback
  2. RTBC and feedback
  3. Commit and release

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ› Bug report
Status

Needs review

Version

2.26

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada mparker17 UTC-4

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024