wiki.techinc.nl/tests/phpunit/includes/api
Aryeh Gregor 6d80b6c082 Split some Language methods to LanguageNameUtils
These are static methods that have to do with processing language names
and codes. I didn't include fallback behavior, because that would mean a
circular dependency with LocalisationCache.

In the new class, I renamed AS_AUTONYMS to AUTONYMS, and added a class
constant DEFINED for 'mw' to match the existing SUPPORTED and ALL. I
also renamed fetchLanguageName(s) to getLanguageName(s).

There is 100% test coverage for the code in the new class.

This was previously committed as 2e52f48c2e and reverted because it
depended on e4468a1d6b, which had to be reverted for performance
issues. There should be no changes other than rebasing.

Bug: T201405
Change-Id: Ifa346c8a92bf1eb57dc5e79458b32b7b26f1ee8a
2019-10-07 15:20:52 -07:00
..
format Kill the remaining usages of PHPUnit4And6Compat methods 2019-10-06 10:12:54 +00:00
query Update tests to use PHPUnit 6 class names 2019-10-06 01:01:28 -07:00
ApiBaseTest.php Replace setExpectedException with two args 2019-10-05 16:14:05 +00:00
ApiBlockInfoTraitTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
ApiBlockTest.php Replace setExpectedException with two args 2019-10-05 16:14:05 +00:00
ApiCheckTokenTest.php
ApiClearHasMsgTest.php
ApiComparePagesTest.php Drop strings for wgExternalDiffEngine, deprecated in 1.27 and 1.32 2019-10-03 22:09:38 +00:00
ApiContinuationManagerTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
ApiCSPReportTest.php API: Fix 'user_id' field of ApiCSPReport 2019-07-19 22:58:39 +01:00
ApiDeleteTest.php Replace setExpectedException with two args 2019-10-05 16:14:05 +00:00
ApiDisabledTest.php Replace setExpectedException with two args 2019-10-05 16:14:05 +00:00
ApiEditPageTest.php Kill the remaining usages of PHPUnit4And6Compat methods 2019-10-06 10:12:54 +00:00
ApiErrorFormatterTest.php
ApiFeedContributionsTest.php Replace setExpectedException with two args 2019-10-05 16:14:05 +00:00
ApiLoginTest.php
ApiLogoutTest.php
ApiMainTest.php Kill the remaining usages of PHPUnit4And6Compat methods 2019-10-06 10:12:54 +00:00
ApiMessageTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
ApiModuleManagerTest.php Mark passing non ObjectFactory spec to ApiModuleManager as deprecated 2019-09-09 21:59:03 +02:00
ApiMoveTest.php Replace setExpectedException with two args 2019-10-05 16:14:05 +00:00
ApiOpenSearchTest.php
ApiOptionsTest.php Update tests to use PHPUnit 6 class names 2019-10-06 01:01:28 -07:00
ApiPageSetTest.php tests: Prefer assertSame() when comparing the integer 0 2019-09-19 15:35:23 +00:00
ApiParseTest.php Kill the remaining usages of PHPUnit4And6Compat methods 2019-10-06 10:12:54 +00:00
ApiPurgeTest.php
ApiQueryAllPagesTest.php tests: Fix broken assertion in ApiQueryAllPagesTest 2019-09-30 16:22:54 +02:00
ApiQueryBlockInfoTraitTest.php API: Use ApiBlockInfoTrait in ApiQueryUsers and AllUsers 2019-09-18 19:44:01 +00:00
ApiQueryBlocksTest.php Rename Block to MediaWiki\Block\DatabaseBlock 2019-05-28 12:20:48 +01:00
ApiQueryDisabledTest.php
ApiQueryInfoTest.php Rename Block to MediaWiki\Block\DatabaseBlock 2019-05-28 12:20:48 +01:00
ApiQueryLanguageinfoTest.php Use ObjectFactory to create API modules 2019-09-09 18:50:16 +00:00
ApiQueryPrefixSearchTest.php
ApiQueryRecentChangesIntegrationTest.php
ApiQuerySearchTest.php Hard deprecate new SearchResult() and introduce RevisionSearchResult 2019-08-27 08:27:28 -07:00
ApiQuerySiteinfoTest.php Split some Language methods to LanguageNameUtils 2019-10-07 15:20:52 -07:00
ApiQueryUserInfoTest.php Rename Block to MediaWiki\Block\DatabaseBlock 2019-05-28 12:20:48 +01:00
ApiQueryWatchlistIntegrationTest.php Replace setExpectedException with two args 2019-10-05 16:14:05 +00:00
ApiQueryWatchlistRawIntegrationTest.php Replace setExpectedException with two args 2019-10-05 16:14:05 +00:00
ApiResultTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
ApiRevisionDeleteTest.php Merge "Allow users who are partially blocked to delete revisions." 2019-09-11 08:24:11 +00:00
ApiSetNotificationTimestampIntegrationTest.php Add missing newline between <?php and namespace/use section 2019-06-03 13:36:48 +00:00
ApiStashEditTest.php Re-apply: Factors out permissions check from User into PermissionManager service 2019-06-28 13:19:38 -07:00
ApiTestCase.php Kill the remaining usages of PHPUnit4And6Compat methods 2019-10-06 10:12:54 +00:00
ApiTestContext.php
ApiTokensTest.php Remove usages of deprecated User::getRights. 2019-08-20 19:43:54 -07:00
ApiUnblockTest.php Revert "Factors out permissions check from User into PermissionManager service" 2019-05-30 13:51:37 +00:00
ApiUploadTest.php Replace setExpectedException with two args 2019-10-05 16:14:05 +00:00
ApiUploadTestCase.php
ApiUsageExceptionTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
ApiUserrightsTest.php Kill the remaining usages of PHPUnit4And6Compat methods 2019-10-06 10:12:54 +00:00
ApiWatchTest.php tests: Replace assertions on count() == 0 with strict === [] 2019-09-30 16:20:34 +02:00
generateRandomImages.php
MockApi.php
MockApiQueryBase.php
RandomImageGenerator.php
UserWrapper.php
words.txt