Repository navigation
Tests/admin/includes/template: Rename get_media_states test class - #16391
shail-mehta wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the test file and class naming alignment.
No open issues 🎉
What changed in this PR
Aligns the get_media_states test file and class names with the admin _Test naming convention, without changing test behavior.
Changes:
- Renames the file and class to
Admin_Includes_Template_GetMediaStates_Test. - Preserves coverage annotations, groups, fixtures, and existing tests.
| File | Description |
|---|---|
| tests/phpunit/tests/admin/includes/template/Admin_Includes_Template_GetMediaStates_Test.php | Aligns the test file and class names with the _Test convention. |
Review effort: Balanced
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
|
lancewillett
left a comment
There was a problem hiding this comment.
Verified all 22 single-site cases (24 assertions) and 22 multisite cases (24 assertions) before and after the rename. PHPUnit discovered the same cases with the same assertion counts in randomized order. The coverage annotations and fixtures are preserved.
AI review · gpt-6.2-astra
…n test classes and files. Developed in: #16387, #16391, #16394 Props shailu25, jrf, desrosj. See #65208. git-svn-id: https://develop.svn.wordpress.org/trunk@65868 602fd350-edb4-49c9-b593-d223f7449a82
…n test classes and files. Developed in: WordPress/wordpress-develop#16387, WordPress/wordpress-develop#16391, WordPress/wordpress-develop#16394 Props shailu25, jrf, desrosj. See #65208. Built from https://develop.svn.wordpress.org/trunk@65868 git-svn-id: http://core.svn.wordpress.org/trunk@64897 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
PR #16391 landed in https://core.trac.wordpress.org/changeset/65868 |
What
Trac Ticket: #65208
Renames
tests/phpunit/tests/admin/includes/template/getMediaStates.phptoAdmin_Includes_Template_GetMediaStates_Test.phpand updates the class fromTests_Admin_Includes_Template_GetMediaStatestoAdmin_Includes_Template_GetMediaStates_Test.Why
filename and class name align with the method under test and end with
_Test, consistent with recently landed admin renames. No test behavior changes.How
git mvto preserve history@covers ::get_media_states, groups, fixtures, and existing tests unchangedTesting instructions
Use of AI tools