Repository navigation
Tests/admin/includes/image: Rename wp_exif_date2ts test class - #16387
shail-mehta wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are recorded for the test filename and class naming alignment.
No open issues 🎉
What changed in this PR
Aligns the wp_exif_date2ts test filename and class with the admin test naming convention.
Changes:
- Renames the file and class to
Admin_Includes_Image_WpExifDate2ts_Test. - Leaves test behavior, coverage annotations, fixtures, and the data provider unchanged.
| File | Description |
|---|---|
tests/phpunit/tests/admin/includes/image/Admin_Includes_Image_WpExifDate2ts_Test.php |
Aligns the test filename and class with the _Test naming 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 2 single-site cases (2 assertions) and 2 multisite cases (2 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 #16387 landed in https://core.trac.wordpress.org/changeset/65868 |
What
Trac Ticket: #65208
Renames
tests/phpunit/tests/admin/includes/image/wpExifDate2ts.phptoAdmin_Includes_Image_WpExifDate2ts_Test.phpand updates the class fromTests_Admin_Includes_Image_WpExifDate2tstoAdmin_Includes_Image_WpExifDate2ts_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 ::wp_exif_date2ts, groups, fixtures, and the data provider unchangedTesting instructions
test_converts_exif_datetime_to_timestamp)Use of AI tools