From 2a6b527f73260925729beb7860a4a2a01513f527 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 19 Oct 2023 13:51:04 +0000 Subject: [PATCH] Tests: Improve the `@group` annotation accuracy and consistency. Includes removing `.php` from some older group names, because most of the groups are no longer named based on the file containing the function, and sometimes functions move around, making the file-based group name inaccurate. Props afercia, aristath, poena, SergeyBiryukov. See #59647. git-svn-id: https://develop.svn.wordpress.org/trunk@56971 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/admin/includesTheme.php | 1 + tests/phpunit/tests/admin/wpAutomaticUpdater.php | 1 + tests/phpunit/tests/admin/wpSiteHealth.php | 1 + tests/phpunit/tests/admin/wpUserSearch.php | 3 +++ tests/phpunit/tests/admin/wpUsersListTable.php | 1 + tests/phpunit/tests/block-supports/duotone.php | 2 ++ tests/phpunit/tests/blocks/getBlockTemplates.php | 1 + tests/phpunit/tests/canonical/category.php | 2 ++ tests/phpunit/tests/canonical/stripFragmentFromUrl.php | 1 + tests/phpunit/tests/category/categoryDescription.php | 1 + tests/phpunit/tests/category/getAllCategoryIds.php | 2 +- tests/phpunit/tests/category/getCatId.php | 2 +- tests/phpunit/tests/category/getCatName.php | 2 +- tests/phpunit/tests/category/getCategories.php | 2 +- tests/phpunit/tests/category/getCategoryByPath.php | 2 +- tests/phpunit/tests/category/getCategoryBySlug.php | 2 +- tests/phpunit/tests/category/getCategoryLink.php | 1 + tests/phpunit/tests/category/getCategoryParents.php | 1 + tests/phpunit/tests/category/getTheCategoryById.php | 1 + tests/phpunit/tests/category/makeCatCompat.php | 2 +- tests/phpunit/tests/category/walkerCategory.php | 1 + tests/phpunit/tests/category/wpDropdownCategories.php | 2 +- tests/phpunit/tests/category/wpListCategories.php | 1 + tests/phpunit/tests/comment/commentForm.php | 2 +- tests/phpunit/tests/comment/commentsOpen.php | 3 ++- tests/phpunit/tests/comment/commentsTemplate.php | 4 ++-- tests/phpunit/tests/comment/pingsOpen.php | 2 +- tests/phpunit/tests/comment/wpUpdateCommentCountNow.php | 2 +- tests/phpunit/tests/customize/selective-refresh-ajax.php | 1 + tests/phpunit/tests/date/currentDatetime.php | 1 + tests/phpunit/tests/date/currentTime.php | 1 + tests/phpunit/tests/date/dateI18n.php | 1 + tests/phpunit/tests/date/getCommentDate.php | 1 + tests/phpunit/tests/date/getFeedBuildDate.php | 1 + tests/phpunit/tests/date/getPermalink.php | 1 + tests/phpunit/tests/date/getPostTime.php | 1 + tests/phpunit/tests/date/getTheDate.php | 1 + tests/phpunit/tests/date/getTheModifiedDate.php | 1 + tests/phpunit/tests/date/maybeDeclineDate.php | 6 ++++-- tests/phpunit/tests/date/mysql2date.php | 2 ++ tests/phpunit/tests/date/query.php | 4 +++- tests/phpunit/tests/date/theDate.php | 1 + tests/phpunit/tests/date/wpDate.php | 1 + tests/phpunit/tests/date/wpTimezone.php | 1 + tests/phpunit/tests/date/xmlrpc.php | 1 + tests/phpunit/tests/db/dbDelta.php | 3 ++- .../tests/editor/classic-to-block-menu-converter.php | 2 ++ tests/phpunit/tests/editor/navigation-fallback.php | 2 ++ tests/phpunit/tests/filesystem/copyDir.php | 3 ++- tests/phpunit/tests/filesystem/findFolder.php | 4 ++-- tests/phpunit/tests/filesystem/moveDir.php | 3 ++- .../{_unzipFilePclzip.php => unzipFilePclzip.php} | 3 ++- .../{_unzipFileZiparchive.php => unzipFileZiparchive.php} | 3 ++- .../tests/filesystem/wpOpcacheInvalidateDirectory.php | 3 ++- tests/phpunit/tests/functions.php | 2 +- tests/phpunit/tests/functions/addMagicQuotes.php | 3 ++- tests/phpunit/tests/functions/allowedProtocols.php | 3 ++- tests/phpunit/tests/functions/anonymization.php | 3 ++- tests/phpunit/tests/functions/canonicalCharset.php | 3 ++- tests/phpunit/tests/functions/cleanDirsizeCache.php | 8 +++----- tests/phpunit/tests/functions/cleanupHeaderComment.php | 3 ++- tests/phpunit/tests/functions/doEnclose.php | 3 ++- tests/phpunit/tests/functions/getNonCachedIds.php | 1 + tests/phpunit/tests/functions/getStatusHeaderDesc.php | 3 ++- tests/phpunit/tests/functions/getWeekstartend.php | 3 ++- tests/phpunit/tests/functions/isNewDay.php | 3 ++- tests/phpunit/tests/functions/isPhpVersionCompatible.php | 3 ++- tests/phpunit/tests/functions/isSerialized.php | 3 ++- tests/phpunit/tests/functions/isSerializedString.php | 3 ++- tests/phpunit/tests/functions/isWpVersionCompatible.php | 3 ++- tests/phpunit/tests/functions/listFiles.php | 3 ++- tests/phpunit/tests/functions/maybeSerialize.php | 3 ++- tests/phpunit/tests/functions/numberFormatI18n.php | 3 ++- tests/phpunit/tests/functions/pluginBasename.php | 3 ++- tests/phpunit/tests/functions/referer.php | 3 ++- tests/phpunit/tests/functions/removeQueryArg.php | 3 ++- tests/phpunit/tests/functions/sizeFormat.php | 3 ++- tests/phpunit/tests/functions/underscoreReturn.php | 2 +- tests/phpunit/tests/functions/wp.php | 3 ++- tests/phpunit/tests/functions/wpAdminNotice.php | 2 +- tests/phpunit/tests/functions/wpArrayGet.php | 3 ++- tests/phpunit/tests/functions/wpArraySet.php | 3 ++- tests/phpunit/tests/functions/wpArraySliceAssoc.php | 3 ++- tests/phpunit/tests/functions/wpAuthCheck.php | 3 ++- .../phpunit/tests/functions/wpCheckAlternateFileNames.php | 3 ++- tests/phpunit/tests/functions/wpCheckFiletype.php | 2 +- tests/phpunit/tests/functions/wpFilesize.php | 3 ++- tests/phpunit/tests/functions/wpFilterObjectList.php | 2 +- tests/phpunit/tests/functions/wpFuzzyNumberMatch.php | 3 ++- tests/phpunit/tests/functions/wpGetAdminNotice.php | 2 +- tests/phpunit/tests/functions/wpGetArchives.php | 3 ++- tests/phpunit/tests/functions/wpGetMimeTypes.php | 3 ++- tests/phpunit/tests/functions/wpGuessUrl.php | 3 ++- tests/phpunit/tests/functions/wpIsNumericArray.php | 3 ++- tests/phpunit/tests/functions/wpListFilter.php | 3 ++- tests/phpunit/tests/functions/wpListPluck.php | 3 ++- tests/phpunit/tests/functions/wpListSort.php | 3 ++- tests/phpunit/tests/functions/wpListUtil.php | 2 +- tests/phpunit/tests/functions/wpNonceAys.php | 3 ++- tests/phpunit/tests/functions/wpNonceField.php | 3 ++- tests/phpunit/tests/functions/wpNonceUrl.php | 2 +- tests/phpunit/tests/functions/wpRefererField.php | 3 ++- tests/phpunit/tests/functions/wpRemoteFopen.php | 3 ++- tests/phpunit/tests/functions/wpToKebabCase.php | 3 ++- tests/phpunit/tests/functions/wpTriggerError.php | 3 ++- tests/phpunit/tests/functions/wpValidateBoolean.php | 3 ++- tests/phpunit/tests/functions/xmlrpc.php | 2 ++ tests/phpunit/tests/load/isLogin.php | 3 ++- tests/phpunit/tests/load/wpConvertHrToBytes.php | 2 +- tests/phpunit/tests/load/wpDebugMode.php | 3 ++- tests/phpunit/tests/load/wpGetDevelopmentMode.php | 3 ++- tests/phpunit/tests/load/wpIsIniValueChangeable.php | 2 +- tests/phpunit/tests/term.php | 4 +--- tests/phpunit/tests/vars.php | 2 +- 114 files changed, 183 insertions(+), 89 deletions(-) rename tests/phpunit/tests/filesystem/{_unzipFilePclzip.php => unzipFilePclzip.php} (98%) rename tests/phpunit/tests/filesystem/{_unzipFileZiparchive.php => unzipFileZiparchive.php} (98%) diff --git a/tests/phpunit/tests/admin/includesTheme.php b/tests/phpunit/tests/admin/includesTheme.php index 9f2fdbc085..ed90cf9514 100644 --- a/tests/phpunit/tests/admin/includesTheme.php +++ b/tests/phpunit/tests/admin/includesTheme.php @@ -1,5 +1,6 @@