ApiClearHasMsg doesn't have tests
Closed, ResolvedPublic


In MediaWiki core, the ApiClearHasMsg module doesn't have any tests. It's a fairly simple module that clears the "you have new messages" flag for users. You will need to create a ApiClearHasMsg test case that implements tests for the module.

If you're not already familiar with PHPUnit tests, https://www.mediawiki.org/wiki/Manual:PHP_unit_testing/Writing_unit_tests has links to some good material on the basics of testing. I would also recommend looking at other tests in the tests/phpunit/includes/api directory of MediaWiki core for an example of how we currently test API modules.

I'll mentor this for Google-Code-in-2017

Legoktm created this task.Fri, Dec 29, 9:07 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptFri, Dec 29, 9:07 AM
Anomie moved this task from Unsorted to Needs Code on the MediaWiki-API board.Sat, Dec 30, 5:10 PM
Phantom42 claimed this task.Tue, Jan 2, 2:18 AM
Phantom42 added a subscriber: Phantom42.

I will add a test for this!

Change 401421 had a related patch set uploaded (by Phantom42; owner: Phantom42):
[mediawiki/core@master] Add tests for ApiClearHasMsg


Change 401421 merged by jenkins-bot:
[mediawiki/core@master] Add test for ApiClearHasMsg


Legoktm closed this task as Resolved.Thu, Jan 4, 7:05 AM