ListToggle class should have PHPUnit tests

In MediaWiki core, the ListToggle class does not have any tests.

If you're not already familiar with PHPUnit 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/ directory of MediaWiki core for an example of how we currently test classes.

You are expected to provide a patch in Wikimedia Gerrit. See for how to set up Git and Gerrit.

Task tags

  • php
  • unit test

Students who completed this task

Ryan Chang

Task type

  • code Code
  • done_all Quality Assurance