3 use Wikimedia\TestingAccessWrapper
;
6 * Test class for SpecialRecentchanges class
10 * @covers SpecialRecentChanges
12 class SpecialRecentchangesTest
extends AbstractChangesListSpecialPageTestCase
{
13 protected function getPage() {
14 return TestingAccessWrapper
::newFromObject(
15 new SpecialRecentchanges
19 // Below providers should only be for features specific to
20 // RecentChanges. Otherwise, it should go in ChangesListSpecialPageTest
22 public function provideParseParameters() {
24 [ 'limit=123', [ 'limit' => '123' ] ],
26 [ '234', [ 'limit' => '234' ] ],
28 [ 'days=3', [ 'days' => '3' ] ],
30 [ 'namespace=5', [ 'namespace' => 5 ] ],
32 [ 'tagfilter=foo', [ 'tagfilter' => 'foo' ] ],
36 public function validateOptionsProvider() {
39 // hidebots=1 is default for Special:RecentChanges
40 [ 'hideanons' => 1, 'hideliu' => 1 ],