Page MenuHomePhabricator

Improve test coverage on ApiQueryCheckUser
Closed, ResolvedPublic2 Estimated Story Points

Description

The ApiQueryCheckUser class has relatively low test coverage (around 30% based on https://doc.wikimedia.org/cover-extensions/CheckUser/src/Api/ApiQueryCheckUser.php.html ) and crucially has no tests that verify the output of a successful call to the API. Such tests are needed to ensure that changes in the parent tasks are made without breaking the existing results of the API.

Acceptance criteria
  • Add tests to ApiQueryCheckUser that at least bring good test coverage to ::execute

Related Objects

View Standalone Graph
This task is connected to more than 200 other tasks. Only direct parents and subtasks are shown here. Use View Standalone Graph to show more of the graph.
StatusSubtypeAssignedTask
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz

Event Timeline

Change 1011005 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/CheckUser@master] Improve test coverage for ApiQueryCheckUser

https://gerrit.wikimedia.org/r/1011005

Change 1011005 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/CheckUser@master] Improve test coverage for ApiQueryCheckUser

https://gerrit.wikimedia.org/r/1011005

Change 1011005 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] Improve test coverage for ApiQueryCheckUser

https://gerrit.wikimedia.org/r/1011005