Make clear separation of action testing groups

Created on 3 November 2019, about 5 years ago
Updated 22 April 2024, 7 months ago

Problem/Motivation

core$ git grep -F '@group Action'

core/modules/jsonapi/tests/src/Functional/ActionTest.php:14: * @group Action
core/modules/system/tests/src/Functional/Rest/ActionJsonAnonTest.php:10: * @group Action
core/modules/system/tests/src/Functional/Rest/ActionJsonBasicAuthTest.php:10: * @group Action
core/modules/system/tests/src/Functional/Rest/ActionJsonCookieTest.php:10: * @group Action
core/modules/system/tests/src/Functional/Rest/ActionXmlAnonTest.php:11: * @group Action
core/modules/system/tests/src/Functional/Rest/ActionXmlBasicAuthTest.php:11: * @group Action
core/modules/system/tests/src/Functional/Rest/ActionXmlCookieTest.php:11: * @group Action
core/modules/system/tests/src/Kernel/Action/ActionTest.php:15: * @group Action
core/tests/Drupal/KernelTests/Core/Action/DeleteActionTest.php:14: * @group Action
core/tests/Drupal/KernelTests/Core/Action/PublishActionTest.php:13: * @group Action
core/tests/Drupal/KernelTests/Core/Action/SaveActionTest.php:13: * @group Action

core$ git grep -F '@group action'

core/modules/system/tests/src/Kernel/Migrate/d7/MigrateActionsTest.php:13: * @group action
core/modules/system/tests/src/Kernel/Plugin/migrate/source/ActionTest.php:13: * @group action
core/modules/views/tests/src/Functional/UserBatchActionTest.php:12: * @group action
core/tests/Drupal/KernelTests/Core/Action/EmailActionTest.php:13: * @group action

There's 2 because of core "Action" (plugin and system module entity) and module's one "action" (UI related)

Proposed resolution

Move tests to "Action" group and decide where to put system module's ones

Remaining tasks

make it clear which component to use and move tests if needed

User interface changes

no

API changes

no

Data model changes

no

Release notes snippet

no

📌 Task
Status

Needs work

Version

11.0 🔥

Component
PHPUnit 

Last updated about 5 hours ago

Created by

🇫🇷France andypost

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

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