Problem/Motivation
Replace annotation-based test metadata with PHP attributes.
Please DO NOT change the MR here manually. The patch is automatically generated by the MR at #3446380: [no-commit] Define a Rector rule to convert test annotations to attributes.
Proposed resolution
In this issue, convert modules' kernel tests, with the exception of:
- /core/modules/editor/tests/src/Kernel/EditorValidationTest.php
- /core/modules/node/tests/src/Kernel/NodeTypeValidationTest.php
- /core/modules/ckeditor5/tests/src/Kernel/ConfigAction/AddItemToToolbarConfigActionTest.php
- /core/modules/system/tests/src/Kernel/Entity/MenuValidationTest.php
that all require manual conversion in a follow up.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|
Issue fork drupal-3543586
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3543586-convert-test-annotations
changes, plain diff MR !13104
Comments
Comment #3
mondrakeBlocked by #3543658: Migrate plugin tests using @cover annotation to indicate the plugin class block conversion to attributes.
Comment #4
mondrakeComment #5
mondrakeThis would be the last issue doing bulk automated conversions via rector. There will still be some outliers to fix, but that will be done manually in a cleanup follow on issue.
Comment #6
mondrakeOpened follow ups
Comment #7
mondrakeComment #8
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #9
mondrakeComment #10
smustgrave commentedChange seems inline with the other changes like this.
Comment #11
mondrakeComment #13
catchThe rector rule works pretty great here, so I just reviewed the first dozen files or so.
Committed/pushed to 11.x, thanks!