From dd71a77512db0b0e9a75724d34ee6878d806b8e9 Mon Sep 17 00:00:00 2001 From: Reedy Date: Sun, 14 Apr 2019 16:14:22 +0100 Subject: [PATCH] Make most special pages class names match filename Change-Id: I3a9f932acb7d9cf44a984b5d97f9fbc6b8670f7d --- .phpcs.xml | 35 ---------- RELEASE-NOTES-1.34 | 28 ++++++++ autoload.php | 70 +++++++++---------- includes/specialpage/QueryPage.php | 62 ++++++++-------- includes/specialpage/SpecialPageFactory.php | 68 +++++++++--------- ...cientpages.php => SpecialAncientPages.php} | 2 +- includes/specials/SpecialBrokenRedirects.php | 2 +- ...nfirmemail.php => SpecialConfirmEmail.php} | 2 +- ...adendpages.php => SpecialDeadendPages.php} | 2 +- .../specials/SpecialDeletedContributions.php | 2 +- includes/specials/SpecialDoubleRedirects.php | 2 +- includes/specials/SpecialEmailInvalidate.php | 2 +- ...visions.php => SpecialFewestRevisions.php} | 2 +- .../specials/SpecialFileDuplicateSearch.php | 2 +- includes/specials/SpecialLinkSearch.php | 2 +- .../specials/SpecialListDuplicatedFiles.php | 2 +- ...redirects.php => SpecialListRedirects.php} | 2 +- ...Lonelypages.php => SpecialLonelyPages.php} | 2 +- ...cialLongpages.php => SpecialLongPages.php} | 2 +- ...alMIMEsearch.php => SpecialMIMESearch.php} | 2 +- includes/specials/SpecialMediaStatistics.php | 2 +- ...tegories.php => SpecialMostCategories.php} | 2 +- ...terwikis.php => SpecialMostInterwikis.php} | 2 +- ...alMostlinked.php => SpecialMostLinked.php} | 2 +- ...es.php => SpecialMostLinkedCategories.php} | 2 +- ...tes.php => SpecialMostLinkedTemplates.php} | 2 +- ...revisions.php => SpecialMostRevisions.php} | 2 +- ...ecialNewimages.php => SpecialNewFiles.php} | 0 ...alShortpages.php => SpecialShortPages.php} | 2 +- ...php => SpecialUncategorizedCategories.php} | 2 +- ...ges.php => SpecialUncategorizedImages.php} | 2 +- ...ages.php => SpecialUncategorizedPages.php} | 2 +- ....php => SpecialUncategorizedTemplates.php} | 2 +- ...gories.php => SpecialUnusedCategories.php} | 2 +- ...usedimages.php => SpecialUnusedImages.php} | 2 +- ...mplates.php => SpecialUnusedTemplates.php} | 2 +- ...hedpages.php => SpecialUnwatchedPages.php} | 2 +- ...gories.php => SpecialWantedCategories.php} | 2 +- ...mplates.php => SpecialWantedTemplates.php} | 2 +- ...erwiki.php => SpecialWithoutInterwiki.php} | 2 +- .../specials/QueryAllSpecialPagesTest.php | 2 +- .../specials/SpecialMIMESearchTest.php | 6 +- ...agesTest.php => SpecialShortPagesTest.php} | 8 +-- ...=> SpecialUncategorizedCategoriesTest.php} | 8 +-- 44 files changed, 174 insertions(+), 181 deletions(-) rename includes/specials/{SpecialAncientpages.php => SpecialAncientPages.php} (98%) rename includes/specials/{SpecialConfirmemail.php => SpecialConfirmEmail.php} (98%) rename includes/specials/{SpecialDeadendpages.php => SpecialDeadendPages.php} (97%) rename includes/specials/{SpecialFewestrevisions.php => SpecialFewestRevisions.php} (98%) rename includes/specials/{SpecialListredirects.php => SpecialListRedirects.php} (98%) rename includes/specials/{SpecialLonelypages.php => SpecialLonelyPages.php} (98%) rename includes/specials/{SpecialLongpages.php => SpecialLongPages.php} (95%) rename includes/specials/{SpecialMIMEsearch.php => SpecialMIMESearch.php} (99%) rename includes/specials/{SpecialMostcategories.php => SpecialMostCategories.php} (98%) rename includes/specials/{SpecialMostinterwikis.php => SpecialMostInterwikis.php} (98%) rename includes/specials/{SpecialMostlinked.php => SpecialMostLinked.php} (98%) rename includes/specials/{SpecialMostlinkedcategories.php => SpecialMostLinkedCategories.php} (97%) rename includes/specials/{SpecialMostlinkedtemplates.php => SpecialMostLinkedTemplates.php} (98%) rename includes/specials/{SpecialMostrevisions.php => SpecialMostRevisions.php} (95%) rename includes/specials/{SpecialNewimages.php => SpecialNewFiles.php} (100%) rename includes/specials/{SpecialShortpages.php => SpecialShortPages.php} (99%) rename includes/specials/{SpecialUncategorizedcategories.php => SpecialUncategorizedCategories.php} (97%) rename includes/specials/{SpecialUncategorizedimages.php => SpecialUncategorizedImages.php} (96%) rename includes/specials/{SpecialUncategorizedpages.php => SpecialUncategorizedPages.php} (97%) rename includes/specials/{SpecialUncategorizedtemplates.php => SpecialUncategorizedTemplates.php} (94%) rename includes/specials/{SpecialUnusedcategories.php => SpecialUnusedCategories.php} (97%) rename includes/specials/{SpecialUnusedimages.php => SpecialUnusedImages.php} (97%) rename includes/specials/{SpecialUnusedtemplates.php => SpecialUnusedTemplates.php} (98%) rename includes/specials/{SpecialUnwatchedpages.php => SpecialUnwatchedPages.php} (98%) rename includes/specials/{SpecialWantedcategories.php => SpecialWantedCategories.php} (98%) rename includes/specials/{SpecialWantedtemplates.php => SpecialWantedTemplates.php} (97%) rename includes/specials/{SpecialWithoutinterwiki.php => SpecialWithoutInterwiki.php} (98%) rename tests/phpunit/includes/specials/{SpecialShortpagesTest.php => SpecialShortPagesTest.php} (85%) rename tests/phpunit/includes/specials/{UncategorizedCategoriesPageTest.php => SpecialUncategorizedCategoriesTest.php} (86%) diff --git a/.phpcs.xml b/.phpcs.xml index 9f11ebcf5c..f971881f38 100644 --- a/.phpcs.xml +++ b/.phpcs.xml @@ -70,47 +70,12 @@ Whitelist existing violations, but enable the sniff to prevent any new occurrences. --> - */includes/specials/SpecialMostinterwikis\.php - */includes/specials/SpecialAncientpages\.php - */includes/specials/SpecialBrokenRedirects\.php - */includes/specials/SpecialConfirmemail\.php - */includes/specials/SpecialDeadendpages\.php - */includes/specials/SpecialDeletedContributions\.php - */includes/specials/SpecialDoubleRedirects\.php - */includes/specials/SpecialEmailInvalidate\.php - */includes/specials/SpecialFewestrevisions\.php - */includes/specials/SpecialFileDuplicateSearch\.php - */includes/specials/SpecialLinkSearch\.php - */includes/specials/SpecialListDuplicatedFiles\.php - */includes/specials/SpecialListredirects\.php - */includes/specials/SpecialLonelypages\.php - */includes/specials/SpecialLongpages\.php - */includes/specials/SpecialMIMEsearch\.php - */includes/specials/SpecialMediaStatistics\.php - */includes/specials/SpecialMostcategories\.php */includes/specials/SpecialMostimages\.php - */includes/specials/SpecialMostlinked\.php - */includes/specials/SpecialMostlinkedcategories\.php - */includes/specials/SpecialMostlinkedtemplates\.php - */includes/specials/SpecialMostrevisions\.php */includes/specials/SpecialMovepage\.php - */includes/specials/SpecialNewimages\.php */includes/specials/SpecialRandompage\.php - */includes/specials/SpecialShortpages\.php - */includes/specials/SpecialUncategorizedcategories\.php - */includes/specials/SpecialUncategorizedimages\.php - */includes/specials/SpecialUncategorizedpages\.php - */includes/specials/SpecialUncategorizedtemplates\.php - */includes/specials/SpecialUnusedcategories\.php - */includes/specials/SpecialUnusedimages\.php - */includes/specials/SpecialUnusedtemplates\.php - */includes/specials/SpecialUnwatchedpages\.php */includes/specials/SpecialUserrights\.php - */includes/specials/SpecialWantedcategories\.php */includes/specials/SpecialWantedfiles\.php */includes/specials/SpecialWantedpages\.php - */includes/specials/SpecialWantedtemplates\.php - */includes/specials/SpecialWithoutinterwiki\.php */maintenance/CodeCleanerGlobalsPass.inc */maintenance/archives/upgradeLogging\.php */maintenance/benchmarks/bench_HTTP_HTTPS\.php diff --git a/RELEASE-NOTES-1.34 b/RELEASE-NOTES-1.34 index 2e220afa3c..2cebf99a48 100644 --- a/RELEASE-NOTES-1.34 +++ b/RELEASE-NOTES-1.34 @@ -190,6 +190,34 @@ because of Phabricator reports. * CryptRand class * CryptRand service * Functions of the MWCryptRand class: singleton(), wasStrong() and generate(). +* Various Special Page PHP Classes were renamed (mostly casing changes): + * SpecialAncientpages => SpecialAncientPages + * SpecialConfirmemail => SpecialConfirmEmail + * SpecialDeadendpages => SpecialDeadendPages + * SpecialFewestrevisions => SpecialFewestRevisions + * SpecialListredirects => SpecialListRedirects + * SpecialLonelypages => SpecialLonelyPages + * SpecialLongpages => SpecialLongPages + * SpecialMIMEsearch => SpecialMIMESearch + * SpecialMostcategories => SpecialMostCategories + * SpecialMostinterwikis => SpecialMostInterwikis + * SpecialMostlinked => SpecialMostLinked + * SpecialMostlinkedcategories => SpecialMostLinkedCategories + * SpecialMostlinkedtemplates => SpecialMostLinkedTemplates + * SpecialMostrevisions => SpecialMostRevisions + * SpecialNewimages => SpecialNewFiles + * SpecialShortpages => SpecialShortPages + * SpecialUncategorizedcategories => SpecialUncategorizedCategories + * SpecialUncategorizedimages => SpecialUncategorizedImages + * SpecialUncategorizedpages => SpecialUncategorizedPages + * SpecialUncategorizedtemplates => SpecialUncategorizedTemplates + * SpecialUnusedcategories => SpecialUnusedCategories + * SpecialUnusedimages => SpecialUnusedImages + * SpecialUnusedtemplates => SpecialUnusedTemplates + * SpecialUnwatchedpages => SpecialUnwatchedPages + * SpecialWantedcategories => SpecialWantedCategories + * SpecialWantedtemplates => SpecialWantedTemplates + * SpecialWithoutinterwiki => SpecialWithoutInterwiki * Language::setCode, deprecated in 1.32, was removed. Use Language::factory to create a new Language object with a different language code. * MWNamespace::clearCaches() has been removed. So has the $rebuild parameter diff --git a/autoload.php b/autoload.php index 87b2bb981a..f95e0015a7 100644 --- a/autoload.php +++ b/autoload.php @@ -20,7 +20,6 @@ $wgAutoloadLocalClasses = [ 'AllMessagesTablePager' => __DIR__ . '/includes/specials/pagers/AllMessagesTablePager.php', 'AllTrans' => __DIR__ . '/maintenance/language/alltrans.php', 'AlphabeticPager' => __DIR__ . '/includes/pager/AlphabeticPager.php', - 'AncientPagesPage' => __DIR__ . '/includes/specials/SpecialAncientpages.php', 'AnsiTermColorer' => __DIR__ . '/maintenance/term/MWTerm.php', 'ApiAMCreateAccount' => __DIR__ . '/includes/api/ApiAMCreateAccount.php', 'ApiAuthManagerHelper' => __DIR__ . '/includes/api/ApiAuthManagerHelper.php', @@ -215,7 +214,6 @@ $wgAutoloadLocalClasses = [ 'BlockLogFormatter' => __DIR__ . '/includes/logging/BlockLogFormatter.php', 'BmpHandler' => __DIR__ . '/includes/media/BmpHandler.php', 'BotPassword' => __DIR__ . '/includes/user/BotPassword.php', - 'BrokenRedirectsPage' => __DIR__ . '/includes/specials/SpecialBrokenRedirects.php', 'BufferingStatsdDataFactory' => __DIR__ . '/includes/libs/stats/BufferingStatsdDataFactory.php', 'CLIParser' => __DIR__ . '/maintenance/parse.php', 'CSSMin' => __DIR__ . '/includes/libs/CSSMin.php', @@ -366,7 +364,6 @@ $wgAutoloadLocalClasses = [ 'DateFormats' => __DIR__ . '/maintenance/language/date-formats.php', 'DateFormatter' => __DIR__ . '/includes/parser/DateFormatter.php', 'DateFormatterFactory' => __DIR__ . '/includes/parser/DateFormatterFactory.php', - 'DeadendPagesPage' => __DIR__ . '/includes/specials/SpecialDeadendpages.php', 'DeduplicateArchiveRevId' => __DIR__ . '/maintenance/deduplicateArchiveRevId.php', 'DeferrableCallback' => __DIR__ . '/includes/deferred/DeferrableCallback.php', 'DeferrableUpdate' => __DIR__ . '/includes/deferred/DeferrableUpdate.php', @@ -388,7 +385,6 @@ $wgAutoloadLocalClasses = [ 'DeletePageJob' => __DIR__ . '/includes/jobqueue/jobs/DeletePageJob.php', 'DeleteSelfExternals' => __DIR__ . '/maintenance/deleteSelfExternals.php', 'DeletedContribsPager' => __DIR__ . '/includes/specials/pagers/DeletedContribsPager.php', - 'DeletedContributionsPage' => __DIR__ . '/includes/specials/SpecialDeletedContributions.php', 'DependencyWrapper' => __DIR__ . '/includes/cache/dependency/DependencyWrapper.php', 'DeprecatedGlobal' => __DIR__ . '/includes/DeprecatedGlobal.php', 'DeprecatedInterfaceFinder' => __DIR__ . '/maintenance/findDeprecated.php', @@ -414,7 +410,6 @@ $wgAutoloadLocalClasses = [ 'DjVuImage' => __DIR__ . '/includes/media/DjVuImage.php', 'DnsSrvDiscoverer' => __DIR__ . '/includes/libs/DnsSrvDiscoverer.php', 'DoubleRedirectJob' => __DIR__ . '/includes/jobqueue/jobs/DoubleRedirectJob.php', - 'DoubleRedirectsPage' => __DIR__ . '/includes/specials/SpecialDoubleRedirects.php', 'DummyLinker' => __DIR__ . '/includes/DummyLinker.php', 'DummySearchIndexFieldDefinition' => __DIR__ . '/includes/search/DummySearchIndexFieldDefinition.php', 'DummyTermColorer' => __DIR__ . '/maintenance/term/MWTerm.php', @@ -447,8 +442,6 @@ $wgAutoloadLocalClasses = [ 'EditPage' => __DIR__ . '/includes/EditPage.php', 'EditWatchlistCheckboxSeriesField' => __DIR__ . '/includes/specials/formfields/EditWatchlistCheckboxSeriesField.php', 'EditWatchlistNormalHTMLForm' => __DIR__ . '/includes/specials/forms/EditWatchlistNormalHTMLForm.php', - 'EmailConfirmation' => __DIR__ . '/includes/specials/SpecialConfirmemail.php', - 'EmailInvalidation' => __DIR__ . '/includes/specials/SpecialEmailInvalidate.php', 'EmailNotification' => __DIR__ . '/includes/mail/EmailNotification.php', 'EmaillingJob' => __DIR__ . '/includes/jobqueue/jobs/EmaillingJob.php', 'EmptyBagOStuff' => __DIR__ . '/includes/libs/objectcache/EmptyBagOStuff.php', @@ -505,7 +498,6 @@ $wgAutoloadLocalClasses = [ 'FeedItem' => __DIR__ . '/includes/changes/FeedItem.php', 'FeedUtils' => __DIR__ . '/includes/FeedUtils.php', 'FetchText' => __DIR__ . '/maintenance/fetchText.php', - 'FewestrevisionsPage' => __DIR__ . '/includes/specials/SpecialFewestrevisions.php', 'Field' => __DIR__ . '/includes/libs/rdbms/field/Field.php', 'File' => __DIR__ . '/includes/filerepo/file/File.php', 'FileAwareNodeVisitor' => __DIR__ . '/maintenance/findDeprecated.php', @@ -525,7 +517,6 @@ $wgAutoloadLocalClasses = [ 'FileContentsHasher' => __DIR__ . '/includes/utils/FileContentsHasher.php', 'FileDeleteForm' => __DIR__ . '/includes/FileDeleteForm.php', 'FileDependency' => __DIR__ . '/includes/cache/dependency/FileDependency.php', - 'FileDuplicateSearchPage' => __DIR__ . '/includes/specials/SpecialFileDuplicateSearch.php', 'FileJournal' => __DIR__ . '/includes/libs/filebackend/filejournal/FileJournal.php', 'FileOp' => __DIR__ . '/includes/libs/filebackend/fileop/FileOp.php', 'FileOpBatch' => __DIR__ . '/includes/libs/filebackend/FileOpBatch.php', @@ -785,14 +776,11 @@ $wgAutoloadLocalClasses = [ 'LinkCache' => __DIR__ . '/includes/cache/LinkCache.php', 'LinkFilter' => __DIR__ . '/includes/LinkFilter.php', 'LinkHolderArray' => __DIR__ . '/includes/parser/LinkHolderArray.php', - 'LinkSearchPage' => __DIR__ . '/includes/specials/SpecialLinkSearch.php', 'Linker' => __DIR__ . '/includes/Linker.php', 'LinksDeletionUpdate' => __DIR__ . '/includes/deferred/LinksDeletionUpdate.php', 'LinksUpdate' => __DIR__ . '/includes/deferred/LinksUpdate.php', - 'ListDuplicatedFilesPage' => __DIR__ . '/includes/specials/SpecialListDuplicatedFiles.php', 'ListToggle' => __DIR__ . '/includes/ListToggle.php', 'ListVariants' => __DIR__ . '/maintenance/language/listVariants.php', - 'ListredirectsPage' => __DIR__ . '/includes/specials/SpecialListredirects.php', 'LoadBalancer' => __DIR__ . '/includes/libs/rdbms/loadbalancer/LoadBalancer.php', 'LoadBalancerSingle' => __DIR__ . '/includes/libs/rdbms/loadbalancer/LoadBalancerSingle.php', 'LocalFile' => __DIR__ . '/includes/filerepo/file/LocalFile.php', @@ -818,9 +806,6 @@ $wgAutoloadLocalClasses = [ 'LoggedUpdateMaintenance' => __DIR__ . '/maintenance/Maintenance.php', 'LoginHelper' => __DIR__ . '/includes/specials/helpers/LoginHelper.php', 'LoginSignupSpecialPage' => __DIR__ . '/includes/specialpage/LoginSignupSpecialPage.php', - 'LonelyPagesPage' => __DIR__ . '/includes/specials/SpecialLonelypages.php', - 'LongPagesPage' => __DIR__ . '/includes/specials/SpecialLongpages.php', - 'MIMEsearchPage' => __DIR__ . '/includes/specials/SpecialMIMEsearch.php', 'MSCompoundFileReader' => __DIR__ . '/includes/libs/mime/MSCompoundFileReader.php', 'MWCallableUpdate' => __DIR__ . '/includes/deferred/MWCallableUpdate.php', 'MWCallbackStream' => __DIR__ . '/includes/http/MWCallbackStream.php', @@ -867,7 +852,6 @@ $wgAutoloadLocalClasses = [ 'McrUndoAction' => __DIR__ . '/includes/actions/McrUndoAction.php', 'MediaHandler' => __DIR__ . '/includes/media/MediaHandler.php', 'MediaHandlerFactory' => __DIR__ . '/includes/media/MediaHandlerFactory.php', - 'MediaStatisticsPage' => __DIR__ . '/includes/specials/SpecialMediaStatistics.php', 'MediaTransformError' => __DIR__ . '/includes/media/MediaTransformError.php', 'MediaTransformInvalidParametersException' => __DIR__ . '/includes/media/MediaTransformInvalidParametersException.php', 'MediaTransformOutput' => __DIR__ . '/includes/media/MediaTransformOutput.php', @@ -1002,13 +986,7 @@ $wgAutoloadLocalClasses = [ 'MigrateUserGroup' => __DIR__ . '/maintenance/migrateUserGroup.php', 'MimeAnalyzer' => __DIR__ . '/includes/libs/mime/MimeAnalyzer.php', 'MinifyScript' => __DIR__ . '/maintenance/minify.php', - 'MostcategoriesPage' => __DIR__ . '/includes/specials/SpecialMostcategories.php', 'MostimagesPage' => __DIR__ . '/includes/specials/SpecialMostimages.php', - 'MostinterwikisPage' => __DIR__ . '/includes/specials/SpecialMostinterwikis.php', - 'MostlinkedCategoriesPage' => __DIR__ . '/includes/specials/SpecialMostlinkedcategories.php', - 'MostlinkedPage' => __DIR__ . '/includes/specials/SpecialMostlinked.php', - 'MostlinkedTemplatesPage' => __DIR__ . '/includes/specials/SpecialMostlinkedtemplates.php', - 'MostrevisionsPage' => __DIR__ . '/includes/specials/SpecialMostrevisions.php', 'MoveBatch' => __DIR__ . '/maintenance/moveBatch.php', 'MoveFileOp' => __DIR__ . '/includes/libs/filebackend/fileop/MoveFileOp.php', 'MoveLogFormatter' => __DIR__ . '/includes/logging/MoveLogFormatter.php', @@ -1331,7 +1309,6 @@ $wgAutoloadLocalClasses = [ 'SerializedValueContainer' => __DIR__ . '/includes/libs/objectcache/serialized/SerializedValueContainer.php', 'SevenZipStream' => __DIR__ . '/maintenance/includes/SevenZipStream.php', 'ShiConverter' => __DIR__ . '/languages/classes/LanguageShi.php', - 'ShortPagesPage' => __DIR__ . '/includes/specials/SpecialShortpages.php', 'ShowJobs' => __DIR__ . '/maintenance/showJobs.php', 'ShowSiteStats' => __DIR__ . '/maintenance/showSiteStats.php', 'Site' => __DIR__ . '/includes/site/Site.php', @@ -1358,6 +1335,7 @@ $wgAutoloadLocalClasses = [ 'SpecialAllMessages' => __DIR__ . '/includes/specials/SpecialAllMessages.php', 'SpecialAllMyUploads' => __DIR__ . '/includes/specials/redirects/SpecialAllMyUploads.php', 'SpecialAllPages' => __DIR__ . '/includes/specials/SpecialAllPages.php', + 'SpecialAncientPages' => __DIR__ . '/includes/specials/SpecialAncientPages.php', 'SpecialApiHelp' => __DIR__ . '/includes/specials/SpecialApiHelp.php', 'SpecialApiSandbox' => __DIR__ . '/includes/specials/SpecialApiSandbox.php', 'SpecialAutoblockList' => __DIR__ . '/includes/specials/SpecialAutoblockList.php', @@ -1366,6 +1344,7 @@ $wgAutoloadLocalClasses = [ 'SpecialBlockList' => __DIR__ . '/includes/specials/SpecialBlockList.php', 'SpecialBookSources' => __DIR__ . '/includes/specials/SpecialBookSources.php', 'SpecialBotPasswords' => __DIR__ . '/includes/specials/SpecialBotPasswords.php', + 'SpecialBrokenRedirects' => __DIR__ . '/includes/specials/SpecialBrokenRedirects.php', 'SpecialCachedPage' => __DIR__ . '/includes/specials/SpecialCachedPage.php', 'SpecialCategories' => __DIR__ . '/includes/specials/SpecialCategories.php', 'SpecialChangeContentModel' => __DIR__ . '/includes/specials/SpecialChangeContentModel.php', @@ -1373,35 +1352,55 @@ $wgAutoloadLocalClasses = [ 'SpecialChangeEmail' => __DIR__ . '/includes/specials/SpecialChangeEmail.php', 'SpecialChangePassword' => __DIR__ . '/includes/specials/SpecialChangePassword.php', 'SpecialComparePages' => __DIR__ . '/includes/specials/SpecialComparePages.php', + 'SpecialConfirmEmail' => __DIR__ . '/includes/specials/SpecialConfirmEmail.php', 'SpecialContributions' => __DIR__ . '/includes/specials/SpecialContributions.php', 'SpecialCreateAccount' => __DIR__ . '/includes/specials/SpecialCreateAccount.php', + 'SpecialDeadendPages' => __DIR__ . '/includes/specials/SpecialDeadendPages.php', + 'SpecialDeletedContributions' => __DIR__ . '/includes/specials/SpecialDeletedContributions.php', 'SpecialDiff' => __DIR__ . '/includes/specials/SpecialDiff.php', + 'SpecialDoubleRedirects' => __DIR__ . '/includes/specials/SpecialDoubleRedirects.php', 'SpecialEditTags' => __DIR__ . '/includes/specials/SpecialEditTags.php', 'SpecialEditWatchlist' => __DIR__ . '/includes/specials/SpecialEditWatchlist.php', + 'SpecialEmailInvalidate' => __DIR__ . '/includes/specials/SpecialEmailInvalidate.php', 'SpecialEmailUser' => __DIR__ . '/includes/specials/SpecialEmailUser.php', 'SpecialExpandTemplates' => __DIR__ . '/includes/specials/SpecialExpandTemplates.php', 'SpecialExport' => __DIR__ . '/includes/specials/SpecialExport.php', + 'SpecialFewestRevisions' => __DIR__ . '/includes/specials/SpecialFewestRevisions.php', + 'SpecialFileDuplicateSearch' => __DIR__ . '/includes/specials/SpecialFileDuplicateSearch.php', 'SpecialFilepath' => __DIR__ . '/includes/specials/SpecialFilepath.php', 'SpecialGoToInterwiki' => __DIR__ . '/includes/specials/SpecialGoToInterwiki.php', 'SpecialImport' => __DIR__ . '/includes/specials/SpecialImport.php', 'SpecialJavaScriptTest' => __DIR__ . '/includes/specials/SpecialJavaScriptTest.php', 'SpecialLinkAccounts' => __DIR__ . '/includes/specials/SpecialLinkAccounts.php', + 'SpecialLinkSearch' => __DIR__ . '/includes/specials/SpecialLinkSearch.php', 'SpecialListAdmins' => __DIR__ . '/includes/specials/redirects/SpecialListAdmins.php', 'SpecialListBots' => __DIR__ . '/includes/specials/redirects/SpecialListBots.php', + 'SpecialListDuplicatedFiles' => __DIR__ . '/includes/specials/SpecialListDuplicatedFiles.php', 'SpecialListFiles' => __DIR__ . '/includes/specials/SpecialListFiles.php', 'SpecialListGrants' => __DIR__ . '/includes/specials/SpecialListGrants.php', 'SpecialListGroupRights' => __DIR__ . '/includes/specials/SpecialListGroupRights.php', + 'SpecialListRedirects' => __DIR__ . '/includes/specials/SpecialListRedirects.php', 'SpecialListUsers' => __DIR__ . '/includes/specials/SpecialListUsers.php', 'SpecialLockdb' => __DIR__ . '/includes/specials/SpecialLockdb.php', 'SpecialLog' => __DIR__ . '/includes/specials/SpecialLog.php', + 'SpecialLonelyPages' => __DIR__ . '/includes/specials/SpecialLonelyPages.php', + 'SpecialLongPages' => __DIR__ . '/includes/specials/SpecialLongPages.php', + 'SpecialMIMESearch' => __DIR__ . '/includes/specials/SpecialMIMESearch.php', + 'SpecialMediaStatistics' => __DIR__ . '/includes/specials/SpecialMediaStatistics.php', 'SpecialMergeHistory' => __DIR__ . '/includes/specials/SpecialMergeHistory.php', + 'SpecialMostCategories' => __DIR__ . '/includes/specials/SpecialMostCategories.php', + 'SpecialMostInterwikis' => __DIR__ . '/includes/specials/SpecialMostInterwikis.php', + 'SpecialMostLinked' => __DIR__ . '/includes/specials/SpecialMostLinked.php', + 'SpecialMostLinkedCategories' => __DIR__ . '/includes/specials/SpecialMostLinkedCategories.php', + 'SpecialMostLinkedTemplates' => __DIR__ . '/includes/specials/SpecialMostLinkedTemplates.php', + 'SpecialMostRevisions' => __DIR__ . '/includes/specials/SpecialMostRevisions.php', 'SpecialMute' => __DIR__ . '/includes/specials/SpecialMute.php', 'SpecialMyLanguage' => __DIR__ . '/includes/specials/SpecialMyLanguage.php', 'SpecialMycontributions' => __DIR__ . '/includes/specials/redirects/SpecialMycontributions.php', 'SpecialMypage' => __DIR__ . '/includes/specials/redirects/SpecialMypage.php', 'SpecialMytalk' => __DIR__ . '/includes/specials/redirects/SpecialMytalk.php', 'SpecialMyuploads' => __DIR__ . '/includes/specials/redirects/SpecialMyuploads.php', - 'SpecialNewFiles' => __DIR__ . '/includes/specials/SpecialNewimages.php', + 'SpecialNewFiles' => __DIR__ . '/includes/specials/SpecialNewFiles.php', 'SpecialNewSection' => __DIR__ . '/includes/specials/SpecialNewSection.php', 'SpecialNewpages' => __DIR__ . '/includes/specials/SpecialNewpages.php', 'SpecialPage' => __DIR__ . '/includes/specialpage/SpecialPage.php', @@ -1429,22 +1428,34 @@ $wgAutoloadLocalClasses = [ 'SpecialRevisionDelete' => __DIR__ . '/includes/specials/SpecialRevisionDelete.php', 'SpecialRunJobs' => __DIR__ . '/includes/specials/SpecialRunJobs.php', 'SpecialSearch' => __DIR__ . '/includes/specials/SpecialSearch.php', + 'SpecialShortPages' => __DIR__ . '/includes/specials/SpecialShortPages.php', 'SpecialSpecialpages' => __DIR__ . '/includes/specials/SpecialSpecialpages.php', 'SpecialStatistics' => __DIR__ . '/includes/specials/SpecialStatistics.php', 'SpecialTags' => __DIR__ . '/includes/specials/SpecialTags.php', 'SpecialTrackingCategories' => __DIR__ . '/includes/specials/SpecialTrackingCategories.php', 'SpecialUnblock' => __DIR__ . '/includes/specials/SpecialUnblock.php', + 'SpecialUncategorizedCategories' => __DIR__ . '/includes/specials/SpecialUncategorizedCategories.php', + 'SpecialUncategorizedImages' => __DIR__ . '/includes/specials/SpecialUncategorizedImages.php', + 'SpecialUncategorizedPages' => __DIR__ . '/includes/specials/SpecialUncategorizedPages.php', + 'SpecialUncategorizedTemplates' => __DIR__ . '/includes/specials/SpecialUncategorizedTemplates.php', 'SpecialUndelete' => __DIR__ . '/includes/specials/SpecialUndelete.php', 'SpecialUnlinkAccounts' => __DIR__ . '/includes/specials/SpecialUnlinkAccounts.php', 'SpecialUnlockdb' => __DIR__ . '/includes/specials/SpecialUnlockdb.php', + 'SpecialUnusedCategories' => __DIR__ . '/includes/specials/SpecialUnusedCategories.php', + 'SpecialUnusedImages' => __DIR__ . '/includes/specials/SpecialUnusedImages.php', + 'SpecialUnusedTemplates' => __DIR__ . '/includes/specials/SpecialUnusedTemplates.php', + 'SpecialUnwatchedPages' => __DIR__ . '/includes/specials/SpecialUnwatchedPages.php', 'SpecialUpload' => __DIR__ . '/includes/specials/SpecialUpload.php', 'SpecialUploadStash' => __DIR__ . '/includes/specials/SpecialUploadStash.php', 'SpecialUploadStashTooLargeException' => __DIR__ . '/includes/specials/exception/SpecialUploadStashTooLargeException.php', 'SpecialUserLogin' => __DIR__ . '/includes/specials/SpecialUserLogin.php', 'SpecialUserLogout' => __DIR__ . '/includes/specials/SpecialUserLogout.php', 'SpecialVersion' => __DIR__ . '/includes/specials/SpecialVersion.php', + 'SpecialWantedCategories' => __DIR__ . '/includes/specials/SpecialWantedCategories.php', + 'SpecialWantedTemplates' => __DIR__ . '/includes/specials/SpecialWantedTemplates.php', 'SpecialWatchlist' => __DIR__ . '/includes/specials/SpecialWatchlist.php', 'SpecialWhatLinksHere' => __DIR__ . '/includes/specials/SpecialWhatLinksHere.php', + 'SpecialWithoutInterwiki' => __DIR__ . '/includes/specials/SpecialWithoutInterwiki.php', 'SqlBagOStuff' => __DIR__ . '/includes/objectcache/SqlBagOStuff.php', 'SqlSearchResult' => __DIR__ . '/includes/search/SqlSearchResult.php', 'SqlSearchResultSet' => __DIR__ . '/includes/search/SqlSearchResultSet.php', @@ -1517,10 +1528,6 @@ $wgAutoloadLocalClasses = [ 'UDPTransport' => __DIR__ . '/includes/libs/UDPTransport.php', 'UIDGenerator' => __DIR__ . '/includes/utils/UIDGenerator.php', 'UcdXmlReader' => __DIR__ . '/maintenance/language/generateCollationData.php', - 'UncategorizedCategoriesPage' => __DIR__ . '/includes/specials/SpecialUncategorizedcategories.php', - 'UncategorizedImagesPage' => __DIR__ . '/includes/specials/SpecialUncategorizedimages.php', - 'UncategorizedPagesPage' => __DIR__ . '/includes/specials/SpecialUncategorizedpages.php', - 'UncategorizedTemplatesPage' => __DIR__ . '/includes/specials/SpecialUncategorizedtemplates.php', 'Undelete' => __DIR__ . '/maintenance/undelete.php', 'UnifiedDiffFormatter' => __DIR__ . '/includes/diff/UnifiedDiffFormatter.php', 'UnknownContent' => __DIR__ . '/includes/content/UnknownContent.php', @@ -1529,11 +1536,7 @@ $wgAutoloadLocalClasses = [ 'UnprotectAction' => __DIR__ . '/includes/actions/UnprotectAction.php', 'UnregisteredLocalFile' => __DIR__ . '/includes/filerepo/file/UnregisteredLocalFile.php', 'UnsupportedSlotDiffRenderer' => __DIR__ . '/includes/diff/UnsupportedSlotDiffRenderer.php', - 'UnusedCategoriesPage' => __DIR__ . '/includes/specials/SpecialUnusedcategories.php', - 'UnusedimagesPage' => __DIR__ . '/includes/specials/SpecialUnusedimages.php', - 'UnusedtemplatesPage' => __DIR__ . '/includes/specials/SpecialUnusedtemplates.php', 'UnwatchAction' => __DIR__ . '/includes/actions/UnwatchAction.php', - 'UnwatchedpagesPage' => __DIR__ . '/includes/specials/SpecialUnwatchedpages.php', 'UpdateArticleCount' => __DIR__ . '/maintenance/updateArticleCount.php', 'UpdateCollation' => __DIR__ . '/maintenance/updateCollation.php', 'UpdateDoubleWidthSearch' => __DIR__ . '/maintenance/updateDoubleWidthSearch.php', @@ -1597,11 +1600,9 @@ $wgAutoloadLocalClasses = [ 'WANCacheReapUpdate' => __DIR__ . '/includes/deferred/WANCacheReapUpdate.php', 'WANObjectCache' => __DIR__ . '/includes/libs/objectcache/wancache/WANObjectCache.php', 'WANObjectCacheReaper' => __DIR__ . '/includes/libs/objectcache/wancache/WANObjectCacheReaper.php', - 'WantedCategoriesPage' => __DIR__ . '/includes/specials/SpecialWantedcategories.php', 'WantedFilesPage' => __DIR__ . '/includes/specials/SpecialWantedfiles.php', 'WantedPagesPage' => __DIR__ . '/includes/specials/SpecialWantedpages.php', 'WantedQueryPage' => __DIR__ . '/includes/specialpage/WantedQueryPage.php', - 'WantedTemplatesPage' => __DIR__ . '/includes/specials/SpecialWantedtemplates.php', 'WatchAction' => __DIR__ . '/includes/actions/WatchAction.php', 'WatchedItem' => __DIR__ . '/includes/watcheditem/WatchedItem.php', 'WatchedItemQueryService' => __DIR__ . '/includes/watcheditem/WatchedItemQueryService.php', @@ -1705,7 +1706,6 @@ $wgAutoloadLocalClasses = [ 'WikitextContentHandler' => __DIR__ . '/includes/content/WikitextContentHandler.php', 'WikitextLogFormatter' => __DIR__ . '/includes/logging/WikitextLogFormatter.php', 'WinCacheBagOStuff' => __DIR__ . '/includes/libs/objectcache/WinCacheBagOStuff.php', - 'WithoutInterwikiPage' => __DIR__ . '/includes/specials/SpecialWithoutinterwiki.php', 'WordLevelDiff' => __DIR__ . '/includes/diff/WordLevelDiff.php', 'WrapOldPasswords' => __DIR__ . '/maintenance/wrapOldPasswords.php', 'XCFHandler' => __DIR__ . '/includes/media/XCFHandler.php', diff --git a/includes/specialpage/QueryPage.php b/includes/specialpage/QueryPage.php index 6cc6e4e94d..b7eb3c0764 100644 --- a/includes/specialpage/QueryPage.php +++ b/includes/specialpage/QueryPage.php @@ -77,40 +77,40 @@ abstract class QueryPage extends SpecialPage { if ( $qp === null ) { // QueryPage subclass, Special page name $qp = [ - [ AncientPagesPage::class, 'Ancientpages' ], - [ BrokenRedirectsPage::class, 'BrokenRedirects' ], - [ DeadendPagesPage::class, 'Deadendpages' ], - [ DoubleRedirectsPage::class, 'DoubleRedirects' ], - [ FileDuplicateSearchPage::class, 'FileDuplicateSearch' ], - [ ListDuplicatedFilesPage::class, 'ListDuplicatedFiles' ], - [ LinkSearchPage::class, 'LinkSearch' ], - [ ListredirectsPage::class, 'Listredirects' ], - [ LonelyPagesPage::class, 'Lonelypages' ], - [ LongPagesPage::class, 'Longpages' ], - [ MediaStatisticsPage::class, 'MediaStatistics' ], - [ MIMEsearchPage::class, 'MIMEsearch' ], - [ MostcategoriesPage::class, 'Mostcategories' ], + [ SpecialAncientPages::class, 'Ancientpages' ], + [ SpecialBrokenRedirects::class, 'BrokenRedirects' ], + [ SpecialDeadendPages::class, 'Deadendpages' ], + [ SpecialDoubleRedirects::class, 'DoubleRedirects' ], + [ SpecialFileDuplicateSearch::class, 'FileDuplicateSearch' ], + [ SpecialListDuplicatedFiles::class, 'ListDuplicatedFiles' ], + [ SpecialLinkSearch::class, 'LinkSearch' ], + [ SpecialListRedirects::class, 'Listredirects' ], + [ SpecialLonelyPages::class, 'Lonelypages' ], + [ SpecialLongPages::class, 'Longpages' ], + [ SpecialMediaStatistics::class, 'MediaStatistics' ], + [ SpecialMIMESearch::class, 'MIMEsearch' ], + [ SpecialMostCategories::class, 'Mostcategories' ], [ MostimagesPage::class, 'Mostimages' ], - [ MostinterwikisPage::class, 'Mostinterwikis' ], - [ MostlinkedCategoriesPage::class, 'Mostlinkedcategories' ], - [ MostlinkedTemplatesPage::class, 'Mostlinkedtemplates' ], - [ MostlinkedPage::class, 'Mostlinked' ], - [ MostrevisionsPage::class, 'Mostrevisions' ], - [ FewestrevisionsPage::class, 'Fewestrevisions' ], - [ ShortPagesPage::class, 'Shortpages' ], - [ UncategorizedCategoriesPage::class, 'Uncategorizedcategories' ], - [ UncategorizedPagesPage::class, 'Uncategorizedpages' ], - [ UncategorizedImagesPage::class, 'Uncategorizedimages' ], - [ UncategorizedTemplatesPage::class, 'Uncategorizedtemplates' ], - [ UnusedCategoriesPage::class, 'Unusedcategories' ], - [ UnusedimagesPage::class, 'Unusedimages' ], - [ WantedCategoriesPage::class, 'Wantedcategories' ], + [ SpecialMostInterwikis::class, 'Mostinterwikis' ], + [ SpecialMostLinkedCategories::class, 'Mostlinkedcategories' ], + [ SpecialMostLinkedTemplates::class, 'Mostlinkedtemplates' ], + [ SpecialMostLinked::class, 'Mostlinked' ], + [ SpecialMostRevisions::class, 'Mostrevisions' ], + [ SpecialFewestRevisions::class, 'Fewestrevisions' ], + [ SpecialShortPages::class, 'Shortpages' ], + [ SpecialUncategorizedCategories::class, 'Uncategorizedcategories' ], + [ SpecialUncategorizedPages::class, 'Uncategorizedpages' ], + [ SpecialUncategorizedImages::class, 'Uncategorizedimages' ], + [ SpecialUncategorizedTemplates::class, 'Uncategorizedtemplates' ], + [ SpecialUnusedCategories::class, 'Unusedcategories' ], + [ SpecialUnusedImages::class, 'Unusedimages' ], + [ SpecialWantedCategories::class, 'Wantedcategories' ], [ WantedFilesPage::class, 'Wantedfiles' ], [ WantedPagesPage::class, 'Wantedpages' ], - [ WantedTemplatesPage::class, 'Wantedtemplates' ], - [ UnwatchedpagesPage::class, 'Unwatchedpages' ], - [ UnusedtemplatesPage::class, 'Unusedtemplates' ], - [ WithoutInterwikiPage::class, 'Withoutinterwiki' ], + [ SpecialWantedTemplates::class, 'Wantedtemplates' ], + [ SpecialUnwatchedPages::class, 'Unwatchedpages' ], + [ SpecialUnusedTemplates::class, 'Unusedtemplates' ], + [ SpecialWithoutInterwiki::class, 'Withoutinterwiki' ], ]; Hooks::run( 'wgQueryPages', [ &$qp ] ); } diff --git a/includes/specialpage/SpecialPageFactory.php b/includes/specialpage/SpecialPageFactory.php index 2737e356a0..3f9c491576 100644 --- a/includes/specialpage/SpecialPageFactory.php +++ b/includes/specialpage/SpecialPageFactory.php @@ -69,35 +69,35 @@ class SpecialPageFactory { */ private static $coreList = [ // Maintenance Reports - 'BrokenRedirects' => \BrokenRedirectsPage::class, - 'Deadendpages' => \DeadendPagesPage::class, - 'DoubleRedirects' => \DoubleRedirectsPage::class, - 'Longpages' => \LongPagesPage::class, - 'Ancientpages' => \AncientPagesPage::class, - 'Lonelypages' => \LonelyPagesPage::class, - 'Fewestrevisions' => \FewestrevisionsPage::class, - 'Withoutinterwiki' => \WithoutInterwikiPage::class, + 'BrokenRedirects' => \SpecialBrokenRedirects::class, + 'Deadendpages' => \SpecialDeadendPages::class, + 'DoubleRedirects' => \SpecialDoubleRedirects::class, + 'Longpages' => \SpecialLongPages::class, + 'Ancientpages' => \SpecialAncientPages::class, + 'Lonelypages' => \SpecialLonelyPages::class, + 'Fewestrevisions' => \SpecialFewestRevisions::class, + 'Withoutinterwiki' => \SpecialWithoutInterwiki::class, 'Protectedpages' => \SpecialProtectedpages::class, 'Protectedtitles' => \SpecialProtectedtitles::class, - 'Shortpages' => \ShortPagesPage::class, - 'Uncategorizedcategories' => \UncategorizedCategoriesPage::class, - 'Uncategorizedimages' => \UncategorizedImagesPage::class, - 'Uncategorizedpages' => \UncategorizedPagesPage::class, - 'Uncategorizedtemplates' => \UncategorizedTemplatesPage::class, - 'Unusedcategories' => \UnusedCategoriesPage::class, - 'Unusedimages' => \UnusedimagesPage::class, - 'Unusedtemplates' => \UnusedtemplatesPage::class, - 'Unwatchedpages' => \UnwatchedpagesPage::class, - 'Wantedcategories' => \WantedCategoriesPage::class, + 'Shortpages' => \SpecialShortPages::class, + 'Uncategorizedcategories' => \SpecialUncategorizedCategories::class, + 'Uncategorizedimages' => \SpecialUncategorizedImages::class, + 'Uncategorizedpages' => \SpecialUncategorizedPages::class, + 'Uncategorizedtemplates' => \SpecialUncategorizedTemplates::class, + 'Unusedcategories' => \SpecialUnusedCategories::class, + 'Unusedimages' => \SpecialUnusedImages::class, + 'Unusedtemplates' => \SpecialUnusedTemplates::class, + 'Unwatchedpages' => \SpecialUnwatchedPages::class, + 'Wantedcategories' => \SpecialWantedCategories::class, 'Wantedfiles' => \WantedFilesPage::class, 'Wantedpages' => \WantedPagesPage::class, - 'Wantedtemplates' => \WantedTemplatesPage::class, + 'Wantedtemplates' => \SpecialWantedTemplates::class, // List of pages 'Allpages' => \SpecialAllPages::class, 'Prefixindex' => \SpecialPrefixindex::class, 'Categories' => \SpecialCategories::class, - 'Listredirects' => \ListredirectsPage::class, + 'Listredirects' => \SpecialListRedirects::class, 'PagesWithProp' => \SpecialPagesWithProp::class, 'TrackingCategories' => \SpecialTrackingCategories::class, @@ -119,7 +119,7 @@ class SpecialPageFactory { 'ChangePassword' => \SpecialChangePassword::class, 'BotPasswords' => \SpecialBotPasswords::class, 'PasswordReset' => \SpecialPasswordReset::class, - 'DeletedContributions' => \DeletedContributionsPage::class, + 'DeletedContributions' => \SpecialDeletedContributions::class, 'Preferences' => \SpecialPreferences::class, 'ResetTokens' => \SpecialResetTokens::class, 'Contributions' => \SpecialContributions::class, @@ -144,12 +144,12 @@ class SpecialPageFactory { // Media reports and uploads 'Listfiles' => \SpecialListFiles::class, 'Filepath' => \SpecialFilepath::class, - 'MediaStatistics' => \MediaStatisticsPage::class, - 'MIMEsearch' => \MIMEsearchPage::class, - 'FileDuplicateSearch' => \FileDuplicateSearchPage::class, + 'MediaStatistics' => \SpecialMediaStatistics::class, + 'MIMEsearch' => \SpecialMIMESearch::class, + 'FileDuplicateSearch' => \SpecialFileDuplicateSearch::class, 'Upload' => \SpecialUpload::class, 'UploadStash' => \SpecialUploadStash::class, - 'ListDuplicatedFiles' => \ListDuplicatedFilesPage::class, + 'ListDuplicatedFiles' => \SpecialListDuplicatedFiles::class, // Data and tools 'ApiSandbox' => \SpecialApiSandbox::class, @@ -160,7 +160,7 @@ class SpecialPageFactory { 'Unlockdb' => \SpecialUnlockdb::class, // Redirecting special pages - 'LinkSearch' => \LinkSearchPage::class, + 'LinkSearch' => \SpecialLinkSearch::class, 'Randompage' => \RandomPage::class, 'RandomInCategory' => \SpecialRandomInCategory::class, 'Randomredirect' => \SpecialRandomredirect::class, @@ -168,13 +168,13 @@ class SpecialPageFactory { 'GoToInterwiki' => \SpecialGoToInterwiki::class, // High use pages - 'Mostlinkedcategories' => \MostlinkedCategoriesPage::class, + 'Mostlinkedcategories' => \SpecialMostLinkedCategories::class, 'Mostimages' => \MostimagesPage::class, - 'Mostinterwikis' => \MostinterwikisPage::class, - 'Mostlinked' => \MostlinkedPage::class, - 'Mostlinkedtemplates' => \MostlinkedTemplatesPage::class, - 'Mostcategories' => \MostcategoriesPage::class, - 'Mostrevisions' => \MostrevisionsPage::class, + 'Mostinterwikis' => \SpecialMostInterwikis::class, + 'Mostlinked' => \SpecialMostLinked::class, + 'Mostlinkedtemplates' => \SpecialMostLinkedTemplates::class, + 'Mostcategories' => \SpecialMostCategories::class, + 'Mostrevisions' => \SpecialMostRevisions::class, // Page tools 'ComparePages' => \SpecialComparePages::class, @@ -282,8 +282,8 @@ class SpecialPageFactory { } if ( $this->options->get( 'EmailAuthentication' ) ) { - $this->list['Confirmemail'] = \EmailConfirmation::class; - $this->list['Invalidateemail'] = \EmailInvalidation::class; + $this->list['Confirmemail'] = \SpecialConfirmEmail::class; + $this->list['Invalidateemail'] = \SpecialEmailInvalidate::class; } if ( $this->options->get( 'EnableEmail' ) ) { diff --git a/includes/specials/SpecialAncientpages.php b/includes/specials/SpecialAncientPages.php similarity index 98% rename from includes/specials/SpecialAncientpages.php rename to includes/specials/SpecialAncientPages.php index a32393e56d..a17c1219ec 100644 --- a/includes/specials/SpecialAncientpages.php +++ b/includes/specials/SpecialAncientPages.php @@ -28,7 +28,7 @@ use MediaWiki\MediaWikiServices; * * @ingroup SpecialPage */ -class AncientPagesPage extends QueryPage { +class SpecialAncientPages extends QueryPage { function __construct( $name = 'Ancientpages' ) { parent::__construct( $name ); diff --git a/includes/specials/SpecialBrokenRedirects.php b/includes/specials/SpecialBrokenRedirects.php index 17f89f9c4a..9431cefbaf 100644 --- a/includes/specials/SpecialBrokenRedirects.php +++ b/includes/specials/SpecialBrokenRedirects.php @@ -30,7 +30,7 @@ use Wikimedia\Rdbms\IDatabase; * * @ingroup SpecialPage */ -class BrokenRedirectsPage extends QueryPage { +class SpecialBrokenRedirects extends QueryPage { function __construct( $name = 'BrokenRedirects' ) { parent::__construct( $name ); } diff --git a/includes/specials/SpecialConfirmemail.php b/includes/specials/SpecialConfirmEmail.php similarity index 98% rename from includes/specials/SpecialConfirmemail.php rename to includes/specials/SpecialConfirmEmail.php index 7f327194c5..f86a133a13 100644 --- a/includes/specials/SpecialConfirmemail.php +++ b/includes/specials/SpecialConfirmEmail.php @@ -29,7 +29,7 @@ * @author Brion Vibber * @author Rob Church */ -class EmailConfirmation extends UnlistedSpecialPage { +class SpecialConfirmEmail extends UnlistedSpecialPage { public function __construct() { parent::__construct( 'Confirmemail', 'editmyprivateinfo' ); } diff --git a/includes/specials/SpecialDeadendpages.php b/includes/specials/SpecialDeadendPages.php similarity index 97% rename from includes/specials/SpecialDeadendpages.php rename to includes/specials/SpecialDeadendPages.php index 2a967c588f..9159442be3 100644 --- a/includes/specials/SpecialDeadendpages.php +++ b/includes/specials/SpecialDeadendPages.php @@ -28,7 +28,7 @@ use MediaWiki\MediaWikiServices; * * @ingroup SpecialPage */ -class DeadendPagesPage extends PageQueryPage { +class SpecialDeadendPages extends PageQueryPage { function __construct( $name = 'Deadendpages' ) { parent::__construct( $name ); diff --git a/includes/specials/SpecialDeletedContributions.php b/includes/specials/SpecialDeletedContributions.php index e9bf6a2372..b2cd8c0af7 100644 --- a/includes/specials/SpecialDeletedContributions.php +++ b/includes/specials/SpecialDeletedContributions.php @@ -28,7 +28,7 @@ use MediaWiki\MediaWikiServices; * Implements Special:DeletedContributions to display archived revisions * @ingroup SpecialPage */ -class DeletedContributionsPage extends SpecialPage { +class SpecialDeletedContributions extends SpecialPage { /** @var FormOptions */ protected $mOpts; diff --git a/includes/specials/SpecialDoubleRedirects.php b/includes/specials/SpecialDoubleRedirects.php index fcf1bb2797..cccca5063a 100644 --- a/includes/specials/SpecialDoubleRedirects.php +++ b/includes/specials/SpecialDoubleRedirects.php @@ -30,7 +30,7 @@ use Wikimedia\Rdbms\IDatabase; * * @ingroup SpecialPage */ -class DoubleRedirectsPage extends QueryPage { +class SpecialDoubleRedirects extends QueryPage { function __construct( $name = 'DoubleRedirects' ) { parent::__construct( $name ); } diff --git a/includes/specials/SpecialEmailInvalidate.php b/includes/specials/SpecialEmailInvalidate.php index c54abadd54..7b9ee1a4fe 100644 --- a/includes/specials/SpecialEmailInvalidate.php +++ b/includes/specials/SpecialEmailInvalidate.php @@ -27,7 +27,7 @@ * * @ingroup SpecialPage */ -class EmailInvalidation extends UnlistedSpecialPage { +class SpecialEmailInvalidate extends UnlistedSpecialPage { public function __construct() { parent::__construct( 'Invalidateemail', 'editmyprivateinfo' ); } diff --git a/includes/specials/SpecialFewestrevisions.php b/includes/specials/SpecialFewestRevisions.php similarity index 98% rename from includes/specials/SpecialFewestrevisions.php rename to includes/specials/SpecialFewestRevisions.php index cf9da49eff..204d73a625 100644 --- a/includes/specials/SpecialFewestrevisions.php +++ b/includes/specials/SpecialFewestRevisions.php @@ -29,7 +29,7 @@ use MediaWiki\MediaWikiServices; * @ingroup SpecialPage * @author Martin Drashkov */ -class FewestrevisionsPage extends QueryPage { +class SpecialFewestRevisions extends QueryPage { function __construct( $name = 'Fewestrevisions' ) { parent::__construct( $name ); } diff --git a/includes/specials/SpecialFileDuplicateSearch.php b/includes/specials/SpecialFileDuplicateSearch.php index 5d8a415a00..f047e1f8bb 100644 --- a/includes/specials/SpecialFileDuplicateSearch.php +++ b/includes/specials/SpecialFileDuplicateSearch.php @@ -31,7 +31,7 @@ use MediaWiki\MediaWikiServices; * * @ingroup SpecialPage */ -class FileDuplicateSearchPage extends QueryPage { +class SpecialFileDuplicateSearch extends QueryPage { protected $hash = '', $filename = ''; /** diff --git a/includes/specials/SpecialLinkSearch.php b/includes/specials/SpecialLinkSearch.php index d08fe5cf4e..f2a3f80df1 100644 --- a/includes/specials/SpecialLinkSearch.php +++ b/includes/specials/SpecialLinkSearch.php @@ -29,7 +29,7 @@ use Wikimedia\Rdbms\IDatabase; * Special:LinkSearch to search the external-links table. * @ingroup SpecialPage */ -class LinkSearchPage extends QueryPage { +class SpecialLinkSearch extends QueryPage { /** @var array|bool */ private $mungedQuery = false; diff --git a/includes/specials/SpecialListDuplicatedFiles.php b/includes/specials/SpecialListDuplicatedFiles.php index c7430cc498..d93c5701c6 100644 --- a/includes/specials/SpecialListDuplicatedFiles.php +++ b/includes/specials/SpecialListDuplicatedFiles.php @@ -32,7 +32,7 @@ use Wikimedia\Rdbms\IDatabase; * a duplicate of the current version of some other file. * @ingroup SpecialPage */ -class ListDuplicatedFilesPage extends QueryPage { +class SpecialListDuplicatedFiles extends QueryPage { function __construct( $name = 'ListDuplicatedFiles' ) { parent::__construct( $name ); } diff --git a/includes/specials/SpecialListredirects.php b/includes/specials/SpecialListRedirects.php similarity index 98% rename from includes/specials/SpecialListredirects.php rename to includes/specials/SpecialListRedirects.php index 3284c570ee..e6862733f1 100644 --- a/includes/specials/SpecialListredirects.php +++ b/includes/specials/SpecialListRedirects.php @@ -31,7 +31,7 @@ use Wikimedia\Rdbms\IDatabase; * Special:Listredirects - Lists all the redirects on the wiki. * @ingroup SpecialPage */ -class ListredirectsPage extends QueryPage { +class SpecialListRedirects extends QueryPage { function __construct( $name = 'Listredirects' ) { parent::__construct( $name ); } diff --git a/includes/specials/SpecialLonelypages.php b/includes/specials/SpecialLonelyPages.php similarity index 98% rename from includes/specials/SpecialLonelypages.php rename to includes/specials/SpecialLonelyPages.php index ca3f4dae8c..14f9435f3a 100644 --- a/includes/specials/SpecialLonelypages.php +++ b/includes/specials/SpecialLonelyPages.php @@ -29,7 +29,7 @@ use MediaWiki\MediaWikiServices; * * @ingroup SpecialPage */ -class LonelyPagesPage extends PageQueryPage { +class SpecialLonelyPages extends PageQueryPage { function __construct( $name = 'Lonelypages' ) { parent::__construct( $name ); } diff --git a/includes/specials/SpecialLongpages.php b/includes/specials/SpecialLongPages.php similarity index 95% rename from includes/specials/SpecialLongpages.php rename to includes/specials/SpecialLongPages.php index d90d2718a6..5227d4e7e1 100644 --- a/includes/specials/SpecialLongpages.php +++ b/includes/specials/SpecialLongPages.php @@ -25,7 +25,7 @@ * * @ingroup SpecialPage */ -class LongPagesPage extends ShortPagesPage { +class SpecialLongPages extends SpecialShortPages { function __construct( $name = 'Longpages' ) { parent::__construct( $name ); } diff --git a/includes/specials/SpecialMIMEsearch.php b/includes/specials/SpecialMIMESearch.php similarity index 99% rename from includes/specials/SpecialMIMEsearch.php rename to includes/specials/SpecialMIMESearch.php index d6ace1d0ce..07848216f0 100644 --- a/includes/specials/SpecialMIMEsearch.php +++ b/includes/specials/SpecialMIMESearch.php @@ -29,7 +29,7 @@ use MediaWiki\MediaWikiServices; * 'img_major_mime' and 'img_minor_mime' fields in the image table. * @ingroup SpecialPage */ -class MIMEsearchPage extends QueryPage { +class SpecialMIMESearch extends QueryPage { protected $major, $minor, $mime; function __construct( $name = 'MIMEsearch' ) { diff --git a/includes/specials/SpecialMediaStatistics.php b/includes/specials/SpecialMediaStatistics.php index 45bd524223..333d9b3cca 100644 --- a/includes/specials/SpecialMediaStatistics.php +++ b/includes/specials/SpecialMediaStatistics.php @@ -28,7 +28,7 @@ use Wikimedia\Rdbms\IDatabase; /** * @ingroup SpecialPage */ -class MediaStatisticsPage extends QueryPage { +class SpecialMediaStatistics extends QueryPage { protected $totalCount = 0, $totalBytes = 0; /** diff --git a/includes/specials/SpecialMostcategories.php b/includes/specials/SpecialMostCategories.php similarity index 98% rename from includes/specials/SpecialMostcategories.php rename to includes/specials/SpecialMostCategories.php index 0dd94372b6..682a23ae94 100644 --- a/includes/specials/SpecialMostcategories.php +++ b/includes/specials/SpecialMostCategories.php @@ -33,7 +33,7 @@ use Wikimedia\Rdbms\IDatabase; * * @ingroup SpecialPage */ -class MostcategoriesPage extends QueryPage { +class SpecialMostCategories extends QueryPage { function __construct( $name = 'Mostcategories' ) { parent::__construct( $name ); } diff --git a/includes/specials/SpecialMostinterwikis.php b/includes/specials/SpecialMostInterwikis.php similarity index 98% rename from includes/specials/SpecialMostinterwikis.php rename to includes/specials/SpecialMostInterwikis.php index 0fcf8420b9..52777b0dfd 100644 --- a/includes/specials/SpecialMostinterwikis.php +++ b/includes/specials/SpecialMostInterwikis.php @@ -30,7 +30,7 @@ use Wikimedia\Rdbms\IDatabase; * * @ingroup SpecialPage */ -class MostinterwikisPage extends QueryPage { +class SpecialMostInterwikis extends QueryPage { function __construct( $name = 'Mostinterwikis' ) { parent::__construct( $name ); } diff --git a/includes/specials/SpecialMostlinked.php b/includes/specials/SpecialMostLinked.php similarity index 98% rename from includes/specials/SpecialMostlinked.php rename to includes/specials/SpecialMostLinked.php index c4553a4fad..c0f1a2a06e 100644 --- a/includes/specials/SpecialMostlinked.php +++ b/includes/specials/SpecialMostLinked.php @@ -33,7 +33,7 @@ use Wikimedia\Rdbms\IDatabase; * * @ingroup SpecialPage */ -class MostlinkedPage extends QueryPage { +class SpecialMostLinked extends QueryPage { function __construct( $name = 'Mostlinked' ) { parent::__construct( $name ); } diff --git a/includes/specials/SpecialMostlinkedcategories.php b/includes/specials/SpecialMostLinkedCategories.php similarity index 97% rename from includes/specials/SpecialMostlinkedcategories.php rename to includes/specials/SpecialMostLinkedCategories.php index 56a701a304..32157fa8a1 100644 --- a/includes/specials/SpecialMostlinkedcategories.php +++ b/includes/specials/SpecialMostLinkedCategories.php @@ -33,7 +33,7 @@ use Wikimedia\Rdbms\IDatabase; * * @ingroup SpecialPage */ -class MostlinkedCategoriesPage extends QueryPage { +class SpecialMostLinkedCategories extends QueryPage { function __construct( $name = 'Mostlinkedcategories' ) { parent::__construct( $name ); } diff --git a/includes/specials/SpecialMostlinkedtemplates.php b/includes/specials/SpecialMostLinkedTemplates.php similarity index 98% rename from includes/specials/SpecialMostlinkedtemplates.php rename to includes/specials/SpecialMostLinkedTemplates.php index 4544468d69..f7122c2859 100644 --- a/includes/specials/SpecialMostlinkedtemplates.php +++ b/includes/specials/SpecialMostLinkedTemplates.php @@ -31,7 +31,7 @@ use Wikimedia\Rdbms\IDatabase; * * @ingroup SpecialPage */ -class MostlinkedTemplatesPage extends QueryPage { +class SpecialMostLinkedTemplates extends QueryPage { function __construct( $name = 'Mostlinkedtemplates' ) { parent::__construct( $name ); } diff --git a/includes/specials/SpecialMostrevisions.php b/includes/specials/SpecialMostRevisions.php similarity index 95% rename from includes/specials/SpecialMostrevisions.php rename to includes/specials/SpecialMostRevisions.php index 0471cafe2d..60e0fe7ec4 100644 --- a/includes/specials/SpecialMostrevisions.php +++ b/includes/specials/SpecialMostRevisions.php @@ -24,7 +24,7 @@ * @author Ævar Arnfjörð Bjarmason */ -class MostrevisionsPage extends FewestrevisionsPage { +class SpecialMostRevisions extends SpecialFewestRevisions { function __construct( $name = 'Mostrevisions' ) { parent::__construct( $name ); } diff --git a/includes/specials/SpecialNewimages.php b/includes/specials/SpecialNewFiles.php similarity index 100% rename from includes/specials/SpecialNewimages.php rename to includes/specials/SpecialNewFiles.php diff --git a/includes/specials/SpecialShortpages.php b/includes/specials/SpecialShortPages.php similarity index 99% rename from includes/specials/SpecialShortpages.php rename to includes/specials/SpecialShortPages.php index 94da25d172..f1bd0656be 100644 --- a/includes/specials/SpecialShortpages.php +++ b/includes/specials/SpecialShortPages.php @@ -31,7 +31,7 @@ use Wikimedia\Rdbms\IDatabase; * * @ingroup SpecialPage */ -class ShortPagesPage extends QueryPage { +class SpecialShortPages extends QueryPage { function __construct( $name = 'Shortpages' ) { parent::__construct( $name ); diff --git a/includes/specials/SpecialUncategorizedcategories.php b/includes/specials/SpecialUncategorizedCategories.php similarity index 97% rename from includes/specials/SpecialUncategorizedcategories.php rename to includes/specials/SpecialUncategorizedCategories.php index 60cbff12e3..7349d95e18 100644 --- a/includes/specials/SpecialUncategorizedcategories.php +++ b/includes/specials/SpecialUncategorizedCategories.php @@ -26,7 +26,7 @@ * * @ingroup SpecialPage */ -class UncategorizedCategoriesPage extends UncategorizedPagesPage { +class SpecialUncategorizedCategories extends SpecialUncategorizedPages { /** * Holds a list of categories, which shouldn't be listed on this special page, * even if it is uncategorized. diff --git a/includes/specials/SpecialUncategorizedimages.php b/includes/specials/SpecialUncategorizedImages.php similarity index 96% rename from includes/specials/SpecialUncategorizedimages.php rename to includes/specials/SpecialUncategorizedImages.php index ed2d5cfbc8..9dcd1bdd35 100644 --- a/includes/specials/SpecialUncategorizedimages.php +++ b/includes/specials/SpecialUncategorizedImages.php @@ -28,7 +28,7 @@ * @ingroup SpecialPage * @todo FIXME: Use an instance of UncategorizedPagesPage or something */ -class UncategorizedImagesPage extends ImageQueryPage { +class SpecialUncategorizedImages extends ImageQueryPage { function __construct( $name = 'Uncategorizedimages' ) { parent::__construct( $name ); $this->addHelpLink( 'Help:Categories' ); diff --git a/includes/specials/SpecialUncategorizedpages.php b/includes/specials/SpecialUncategorizedPages.php similarity index 97% rename from includes/specials/SpecialUncategorizedpages.php rename to includes/specials/SpecialUncategorizedPages.php index 0b7da7bf8a..3610c011e7 100644 --- a/includes/specials/SpecialUncategorizedpages.php +++ b/includes/specials/SpecialUncategorizedPages.php @@ -29,7 +29,7 @@ use MediaWiki\MediaWikiServices; * @ingroup SpecialPage * @todo FIXME: Make $requestedNamespace selectable, unify all subclasses into one */ -class UncategorizedPagesPage extends PageQueryPage { +class SpecialUncategorizedPages extends PageQueryPage { /** @var int|false */ protected $requestedNamespace = false; diff --git a/includes/specials/SpecialUncategorizedtemplates.php b/includes/specials/SpecialUncategorizedTemplates.php similarity index 94% rename from includes/specials/SpecialUncategorizedtemplates.php rename to includes/specials/SpecialUncategorizedTemplates.php index af038fa88d..3d6d38317c 100644 --- a/includes/specials/SpecialUncategorizedtemplates.php +++ b/includes/specials/SpecialUncategorizedTemplates.php @@ -28,7 +28,7 @@ * * @ingroup SpecialPage */ -class UncategorizedTemplatesPage extends UncategorizedPagesPage { +class SpecialUncategorizedTemplates extends SpecialUncategorizedPages { public function __construct( $name = 'Uncategorizedtemplates' ) { parent::__construct( $name ); $this->requestedNamespace = NS_TEMPLATE; diff --git a/includes/specials/SpecialUnusedcategories.php b/includes/specials/SpecialUnusedCategories.php similarity index 97% rename from includes/specials/SpecialUnusedcategories.php rename to includes/specials/SpecialUnusedCategories.php index 2577a100cf..36367d2f27 100644 --- a/includes/specials/SpecialUnusedcategories.php +++ b/includes/specials/SpecialUnusedCategories.php @@ -24,7 +24,7 @@ /** * @ingroup SpecialPage */ -class UnusedCategoriesPage extends QueryPage { +class SpecialUnusedCategories extends QueryPage { function __construct( $name = 'Unusedcategories' ) { parent::__construct( $name ); } diff --git a/includes/specials/SpecialUnusedimages.php b/includes/specials/SpecialUnusedImages.php similarity index 97% rename from includes/specials/SpecialUnusedimages.php rename to includes/specials/SpecialUnusedImages.php index bcb3b85e36..cb215e3545 100644 --- a/includes/specials/SpecialUnusedimages.php +++ b/includes/specials/SpecialUnusedImages.php @@ -26,7 +26,7 @@ * * @ingroup SpecialPage */ -class UnusedimagesPage extends ImageQueryPage { +class SpecialUnusedImages extends ImageQueryPage { function __construct( $name = 'Unusedimages' ) { parent::__construct( $name ); } diff --git a/includes/specials/SpecialUnusedtemplates.php b/includes/specials/SpecialUnusedTemplates.php similarity index 98% rename from includes/specials/SpecialUnusedtemplates.php rename to includes/specials/SpecialUnusedTemplates.php index f73be43839..119ef875a9 100644 --- a/includes/specials/SpecialUnusedtemplates.php +++ b/includes/specials/SpecialUnusedTemplates.php @@ -29,7 +29,7 @@ * * @ingroup SpecialPage */ -class UnusedtemplatesPage extends QueryPage { +class SpecialUnusedTemplates extends QueryPage { function __construct( $name = 'Unusedtemplates' ) { parent::__construct( $name ); } diff --git a/includes/specials/SpecialUnwatchedpages.php b/includes/specials/SpecialUnwatchedPages.php similarity index 98% rename from includes/specials/SpecialUnwatchedpages.php rename to includes/specials/SpecialUnwatchedPages.php index 3c5de64baa..42adaa0d42 100644 --- a/includes/specials/SpecialUnwatchedpages.php +++ b/includes/specials/SpecialUnwatchedPages.php @@ -33,7 +33,7 @@ use Wikimedia\Rdbms\IDatabase; * * @ingroup SpecialPage */ -class UnwatchedpagesPage extends QueryPage { +class SpecialUnwatchedPages extends QueryPage { function __construct( $name = 'Unwatchedpages' ) { parent::__construct( $name, 'unwatchedpages' ); diff --git a/includes/specials/SpecialWantedcategories.php b/includes/specials/SpecialWantedCategories.php similarity index 98% rename from includes/specials/SpecialWantedcategories.php rename to includes/specials/SpecialWantedCategories.php index 5c62298360..659650c6ab 100644 --- a/includes/specials/SpecialWantedcategories.php +++ b/includes/specials/SpecialWantedCategories.php @@ -30,7 +30,7 @@ use MediaWiki\MediaWikiServices; * * @ingroup SpecialPage */ -class WantedCategoriesPage extends WantedQueryPage { +class SpecialWantedCategories extends WantedQueryPage { private $currentCategoryCounts; function __construct( $name = 'Wantedcategories' ) { diff --git a/includes/specials/SpecialWantedtemplates.php b/includes/specials/SpecialWantedTemplates.php similarity index 97% rename from includes/specials/SpecialWantedtemplates.php rename to includes/specials/SpecialWantedTemplates.php index 66e681420f..453f7b8888 100644 --- a/includes/specials/SpecialWantedtemplates.php +++ b/includes/specials/SpecialWantedTemplates.php @@ -31,7 +31,7 @@ * * @ingroup SpecialPage */ -class WantedTemplatesPage extends WantedQueryPage { +class SpecialWantedTemplates extends WantedQueryPage { function __construct( $name = 'Wantedtemplates' ) { parent::__construct( $name ); } diff --git a/includes/specials/SpecialWithoutinterwiki.php b/includes/specials/SpecialWithoutInterwiki.php similarity index 98% rename from includes/specials/SpecialWithoutinterwiki.php rename to includes/specials/SpecialWithoutInterwiki.php index 548e9212c3..36aea75b96 100644 --- a/includes/specials/SpecialWithoutinterwiki.php +++ b/includes/specials/SpecialWithoutInterwiki.php @@ -29,7 +29,7 @@ use MediaWiki\MediaWikiServices; * * @ingroup SpecialPage */ -class WithoutInterwikiPage extends PageQueryPage { +class SpecialWithoutInterwiki extends PageQueryPage { private $prefix = ''; function __construct( $name = 'Withoutinterwiki' ) { diff --git a/tests/phpunit/includes/specials/QueryAllSpecialPagesTest.php b/tests/phpunit/includes/specials/QueryAllSpecialPagesTest.php index 58f83decba..a95d43c002 100644 --- a/tests/phpunit/includes/specials/QueryAllSpecialPagesTest.php +++ b/tests/phpunit/includes/specials/QueryAllSpecialPagesTest.php @@ -22,7 +22,7 @@ class QueryAllSpecialPagesTest extends MediaWikiTestCase { /** List query pages that can not be tested automatically */ protected $manualTest = [ - LinkSearchPage::class + SpecialLinkSearch::class ]; /** diff --git a/tests/phpunit/includes/specials/SpecialMIMESearchTest.php b/tests/phpunit/includes/specials/SpecialMIMESearchTest.php index 4ecb813f8c..08225a697d 100644 --- a/tests/phpunit/includes/specials/SpecialMIMESearchTest.php +++ b/tests/phpunit/includes/specials/SpecialMIMESearchTest.php @@ -2,15 +2,15 @@ /** * @group Database - * @covers MIMEsearchPage + * @covers SpecialMIMESearch */ class SpecialMIMESearchTest extends MediaWikiTestCase { - /** @var MIMEsearchPage */ + /** @var SpecialMIMESearch */ private $page; function setUp() { - $this->page = new MIMEsearchPage; + $this->page = new SpecialMIMESearch; $context = new RequestContext(); $context->setTitle( Title::makeTitle( NS_SPECIAL, 'MIMESearch' ) ); $context->setRequest( new FauxRequest() ); diff --git a/tests/phpunit/includes/specials/SpecialShortpagesTest.php b/tests/phpunit/includes/specials/SpecialShortPagesTest.php similarity index 85% rename from tests/phpunit/includes/specials/SpecialShortpagesTest.php rename to tests/phpunit/includes/specials/SpecialShortPagesTest.php index 236c5c4e58..8891d0db8f 100644 --- a/tests/phpunit/includes/specials/SpecialShortpagesTest.php +++ b/tests/phpunit/includes/specials/SpecialShortPagesTest.php @@ -1,17 +1,17 @@ setMwGlobals( [ @@ -22,7 +22,7 @@ class SpecialShortpagesTest extends MediaWikiTestCase { // empty hook handler } ); - $page = new ShortPagesPage(); + $page = new SpecialShortPages(); $queryInfo = $page->getQueryInfo(); $this->assertArrayHasKey( 'conds', $queryInfo ); diff --git a/tests/phpunit/includes/specials/UncategorizedCategoriesPageTest.php b/tests/phpunit/includes/specials/SpecialUncategorizedCategoriesTest.php similarity index 86% rename from tests/phpunit/includes/specials/UncategorizedCategoriesPageTest.php rename to tests/phpunit/includes/specials/SpecialUncategorizedCategoriesTest.php index 80bd365f35..daccd274a9 100644 --- a/tests/phpunit/includes/specials/UncategorizedCategoriesPageTest.php +++ b/tests/phpunit/includes/specials/SpecialUncategorizedCategoriesTest.php @@ -1,17 +1,17 @@ getMockBuilder( RequestContext::class )->getMock(); $mockContext->method( 'msg' )->willReturn( $msg ); - $special = new UncategorizedCategoriesPage(); + $special = new SpecialUncategorizedCategories(); $special->setContext( $mockContext ); $this->assertEquals( [ 'tables' => [ -- 2.20.1