summaryrefslogtreecommitdiff
path: root/www/wiki/tests/phpunit/mocks/MockChangesListFilter.php
blob: 79232ad148179b7557c8a117aa99acd1ff508b8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

class MockChangesListFilter extends ChangesListFilter {
	public function displaysOnUnstructuredUi() {
		throw new MWException(
			'Not implemented: If the test relies on this, put it one of the ' .
			'subclasses\' tests (e.g. ChangesListBooleanFilterTest) ' .
			'instead of testing the abstract class'
		);
	}

	public function isSelected( FormOptions $opts ) {
		return false;
	}
}