This code was partially copied into MassMessage and will hopefully
enable more places that accept arbitrary wikitext to check lint errors.
It also hides the internal details of checking with the Linter
extension's configuration in one place until it can be refactored into
something more acceptable (T360809).
Bug: T368690
Change-Id: Iaeb3ccbd61a2a8cb0d8b3dc8b06a3a10bc8fa653
MediaWikiUnitTestCase::setService is defined as (string $name,
$service), which is incompatible with the ($name, $service) signature
MockHttpTrait expects for this method. As a fix, add the type hint to
the trait and MediaWikiIntegrationTestCase as well, to allow using
MockHttpTrait in tests extending MediaWikiUnitTestCase.
Change-Id: Ic7df40469947eff4b2be07d53eb9e09f452a4886
Edits from temporary accounts are considered anonymous edits.
ApiQueryRecentChanges doesn't correctly reflect this and needs to be
updated to correctly return temporary account edits as anonymous (and
similarly, not to return them when requesting !anon)
- Update the anon|!anon query to accomodate temporary accounts
Bug: T370803
Change-Id: Ica5225422ea53d2aa3a84b86d9c2f14832a34ed4
Why:
* The maintenance scripts in core are mostly untested and testing
the less complex scripts will improve the test coverage in core.
What:
* Add an integration test for sql.php which partly covers the
file.
Bug: T371167
Change-Id: I5ba73fcc648652d39cc69a9eba78b3ee579b0db5
Why:
* The maintenance scripts in core are mostly untested and testing
the less complex scripts will improve the test coverage in core.
What:
* Add integration tests for showSiteStats.php
Bug: T371167
Change-Id: Icc8dc32769d71ff7de7c42b48332bcb270b5c88e
Why:
* The maintenance scripts in core are mostly untested and testing
the less complex scripts will improve the test coverage in core.
What:
* Add integration tests for updateArticleCount.php
Bug: T371167
Change-Id: Ie9a665dd204bd2685d0140f193c85d3390c222f7
Why:
* The maintenance scripts in core are mostly untested and testing
the less complex scripts will improve the test coverage in core.
What:
* Add integration tests for deleteDefaultMessages.php
Bug: T371167
Change-Id: Iab9347d986ac341af7bfde2ed7d56b9403f98409
Why:
* The maintenance scripts in core are mostly untested and testing
the less complex scripts will improve the test coverage in core.
What:
* Add integration tests to verify deleteBatch.php when adding
groups to an existing user.
Bug: T371167
Change-Id: I847b0dab093abbfe7dede33d1f30b729bf5e9fbf
Why:
* The maintenance scripts in core are mostly untested and testing
the less complex scripts will improve the test coverage in core.
What:
* Add integration tests for checkBadRedirects.php
Bug: T371167
Change-Id: I1be21e36b9f1247a75b6d4469de711905ea07028
In change I625a48a6ecd3fad5c2ed76b23343a0fef91e1b83 I am planning to
make Wikimedia\Message\MessageValue use it, and we try to pretend that
it is a library separate from MediaWiki, so it makes sense to move
MessageSpecifier to the same namespace under Wikimedia\.
Bug: T353458
Change-Id: I9ff4ff7beb098b60c92f564591937c7d789c6684
Why:
* The maintenance scripts in core are mostly untested and testing
the less complex scripts will improve the test coverage in core.
What:
* Add integration tests for blockUsers.php
Bug: T371167
Change-Id: I77fbb182518f6c3a0f11ebbabaa97fa464c8d420
The checkUsernames.php script is completely untested. Adding tests
is useful to verify that the script works, especially that the
output remains consistent.
Bug: T371167
Change-Id: Ib1889908a69d1401463ae0ae93e7c9446903327b
Why:
* The maintenance scripts in core are mostly untested and testing
the less complex scripts will improve the test coverage in core.
What:
* Expand the integration tests in ResetUserEmailTest to cover the
case where a user ID is provided instead of a username in the
script arguments.
Bug: T371167
Change-Id: I6887db8035210dc3a68d23c3aaa2bc0494f8b056
Why:
* The maintenance scripts in core are mostly untested and testing
the less complex scripts will improve the test coverage in core.
What:
* Add integration tests for resetUserEmail.php that partly cover
the script.
Bug: T371167
Change-Id: Ie5f0934654d8228cebb5953a5fefa3343631999c
Why:
* The maintenance scripts in core are mostly untested and testing
the less complex scripts will improve the test coverage in core.
What:
* Add CheckSignaturesTest.php
Bug: T371167
Change-Id: Ie9a8035716148cd91fd3c9886c8b23c3894b866a
Why:
* The maintenance scripts in core are mostly untested and testing
the less complex scripts will improve the test coverage in core.
What:
* Add integration tests for attachLatest.php
Bug: T371167
Change-Id: I116f09db4c45fecefe583be17b2325c90af03617