wiki.techinc.nl/tests/phpunit/includes/api
Thalia 9335363789
Store block reasons as CommentStoreComments in block classes
AbstractBlock::setReason now accepts a string, Message or
CommentStoreComment. The CommentStoreComment is accessed via
AbstractBlock::getReasonComment.

AbstractBlock::getReason returns the reason as a string, with
the language and format consistent with how block reasons were
built before this commit. This method is deprecated, since it
makes assumptions about the language and format needed. The
deprecated mReason property is no longer public.

Doing this (and T227005) will remove the implicit dependency of
BlockManager::getUserBlock on language, which causes a recursion
error if the block is checked before the user has loaded. It also
provides a mechanism for getting the block reason in a language
specified by the caller. (This does not apply to DatabaseBlock
reasons entered via the Special:Block form, which were not and
are still not translatable.)

This commit also updates authentication classes to return the
translated reason.

Bug: T227007
Change-Id: Iec36876e930dff96a256aebbdc39cbfb331c244e
2019-10-18 17:47:56 -04:00
..
format Kill the remaining usages of PHPUnit4And6Compat methods 2019-10-06 10:12:54 +00:00
query Add public as visibility in tests folder 2019-10-10 21:55:37 +02:00
ApiBaseTest.php Store block reasons as CommentStoreComments in block classes 2019-10-18 17:47:56 -04:00
ApiBlockInfoTraitTest.php Store block reasons as CommentStoreComments in block classes 2019-10-18 17:47:56 -04:00
ApiBlockTest.php Store block reasons as CommentStoreComments in block classes 2019-10-18 17:47:56 -04: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 Add some missing @covers tags 2019-02-02 21:53:40 -08:00
ApiFeedContributionsTest.php Replace setExpectedException with two args 2019-10-05 16:14:05 +00:00
ApiLoginTest.php Use non-deprecated login in ApiLoginTest 2018-10-10 11:13:05 +03:00
ApiLogoutTest.php ApiLogout: Follow up Icb674095 2019-04-25 10:00:24 -04:00
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 phpcs: Enable MediaWiki.Commenting.PhpunitAnnotations.ForbiddenExpectedException* and make pass 2019-10-14 12:48:48 -07:00
ApiMoveTest.php Replace setExpectedException with two args 2019-10-05 16:14:05 +00:00
ApiOpenSearchTest.php
ApiOptionsTest.php phpcs: Enable MediaWiki.Commenting.PhpunitAnnotations.ForbiddenExpectedException* and make pass 2019-10-14 12:48:48 -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 Add PHPUnit test to ApiQueryDisabled 2018-08-02 21:44:24 -04:00
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 Ensure database is setup in MediaWikiTestCase::insertPage 2018-09-14 22:32:23 +02:00
ApiQueryRecentChangesIntegrationTest.php Update MediaWikiTitleCodec to use NamespaceInfo 2019-04-14 14:55:58 +03:00
ApiQuerySearchTest.php Hard deprecate new SearchResult() and introduce RevisionSearchResult 2019-08-27 08:27:28 -07:00
ApiQuerySiteinfoTest.php Merge "Export $wgMainPageIsDomainRoot in siteinfo API" 2019-10-09 16:17:19 +00: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 phpcs: Enable MediaWiki.Commenting.PhpunitAnnotations.ForbiddenExpectedException* and make pass 2019-10-14 12:48:48 -07:00
ApiUploadTest.php Replace setExpectedException with two args 2019-10-05 16:14:05 +00:00
ApiUploadTestCase.php build: Upgrade mediawiki-codesniffer from 26.0.0 to 28.0.0 2019-10-11 10:05:43 -07:00
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 Add public as visibility in tests folder 2019-10-10 21:55:37 +02:00
generateRandomImages.php Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient 2018-05-30 18:06:13 -07:00
MockApi.php
MockApiQueryBase.php
RandomImageGenerator.php Add public as visibility in tests folder 2019-10-10 21:55:37 +02:00
UserWrapper.php
words.txt