CodeSearch survey: https://codesearch.wmcloud.org/deployed/?q=public+function+provide*&files=tests%2F&excludeFiles=&repos=
In the spirit of T332865: PHPUnit data providers should be simple static functions that return plain data, we've mostly migrated our code to use pure data providers, but there are still some extensions (per code search) above that still don't follow this pattern.
It would be nice to migrate all of them to the new pattern. Not sure if it would be helpful to tag all extensions on the codesearch list.
Code search for code used at Wikimedia:
- MediaWiki core (8 files)
- tests/phpunit/includes/Api/ApiMainTest.php (1 matches)
- tests/phpunit/includes/EditPage/EditPageTest.php (1 matches)
- tests/phpunit/includes/Language/ConverterRuleTest.php (1 matches)
- tests/phpunit/includes/Media/ExifTest.php (1 matches)
- tests/phpunit/includes/Search/SearchUpdateTest.php (1 matches)
- tests/phpunit/integration/includes/Linker/UserLinkRendererTest.php (1 matches)
- tests/phpunit/mocks/Session/DummySessionProvider.php (1 matches)
- tests/phpunit/unit/includes/Specials/Pager/EditWatchlistPagerTest.php (1 matches)
- mediawiki/extensions/CampaignEvents (2 files)
- mediawiki/extensions/CheckUser (3 files)
- tests/phpunit/integration/HookHandler/SpecialContributionsHandlerTest.php (1 matches)
- tests/phpunit/integration/SuggestedInvestigations/Services/SuggestedInvestigationsCaseLookupServiceTest.php (1 matches)
- tests/phpunit/integration/SuggestedInvestigations/Services/SuggestedInvestigationsSignalMatchServiceTest.php (3 matches)
- mediawiki/extensions/CirrusSearch (5 files)
- tests/phpunit/integration/BuildDocument/Completion/SuggestBuilderTest.php (1 matches)
- tests/phpunit/unit/AlternativeIndicesTest.php (2 matches)
- tests/phpunit/unit/Query/SimpleKeywordFeatureTest.php (1 matches)
- tests/phpunit/unit/SecondTry/SecondTryLanguageConverterTest.php (1 matches)
- tests/phpunit/unit/SecondTry/SecondTrySearchTest.php (1 matches)
- mediawiki/extensions/Cite (1 files)
- tests/phpunit/integration/ValidatorTest.php (1 matches)
- mediawiki/extensions/CodeMirror (2 files)
- tests/phpunit/ApiCodeMirrorValidateTest.php (1 matches)
- tests/phpunit/JavaScriptValidatorTest.php (1 matches)
- mediawiki/extensions/CommunityRequests (3 files)
- tests/phpunit/unit/CommunityRequestsHooksTest.php (1 matches)
- tests/phpunit/unit/PageDisplayHooksTest.php (1 matches)
- tests/phpunit/unit/PermissionHooksTest.php (1 matches)
- mediawiki/extensions/ConfirmEdit (1 files)
- mediawiki/extensions/EmailAuth (1 files)
- mediawiki/extensions/GrowthExperiments (2 files)
- mediawiki/extensions/IPReputation (1 files)
- mediawiki/extensions/Kartographer (2 files)
- mediawiki/extensions/Math (1 files)
- mediawiki/extensions/MetricsPlatform (1 files) => TestKitchen
- mediawiki/extensions/OATHAuth (2 files)
- tests/phpunit/integration/Api/Module/ApiOATHValidateTest.php (1 matches)
- tests/phpunit/unit/AAGUIDLookupTest.php (2 matches)
- mediawiki/extensions/ParserMigration (1 files)
- tests/phpunit/OracleTest.php (1 matches)
- mediawiki/extensions/Score (1 files)
- tests/phpunit/includes/ScoreFormatterTest.php (1 matches)
- mediawiki/extensions/Scribunto (3 files)
- mediawiki/extensions/SecurePoll (1 files)
- mediawiki/extensions/TestKitchen (1 files)
- mediawiki/extensions/Thanks (1 files)
- tests/phpunit/unit/HooksTest.php (1 matches)
- mediawiki/extensions/UploadWizard (1 files)
- tests/phpunit/ConfigTest.php (1 matches)
- mediawiki/extensions/WikiLambda (1 files)
- mediawiki/extensions/WikimediaCustomizations (2 files)
- operations/mediawiki-config (1 files) - Tracked under T420844: Update phpunit.xml in operations/mediawiki-config for PHPUnit 10 and fix phpunit deprecation warnings
- tests/CirrusTest.php (2 matches)