See also T282010: Add basic unit tests for the Ballot class [M].
Subclasses of ballot are:
- ApprovalBallot
- ChooseBallot
- PreferentialBallot
- RadioRangeBallot
We should implement a new test class for each ballot class, and each one should extend MediaWikiUnitTestCase.
This will require some judgement of what is worth testing, and what is possible to test with a unit test (as opposed to an integration test).