Page MenuHomePhabricator

SpecialApiSandbox needs PHPUnit integration tests
Open, Needs TriagePublic

Description

In MediaWiki core, the SpecialApiSandbox class needs PHPUnit integration tests.

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/specials directory of MediaWiki core for an example of how we currently test special pages. SpecialBlankPageTest is a pretty simple one to look at.

Mentors: @Legoktm