rdbms: Rename "memCache" to "memStash" in LBFactory
[mediawiki.git] / tests / phpunit / includes / specials / SpecialRecentchangesTest.php
blob0af308950157b658060ed63d3657aff6200de97a
1 <?php
3 use Wikimedia\TestingAccessWrapper;
5 /**
6 * Test class for SpecialRecentchanges class
8 * @group Database
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() {
23 return [
24 [ 'limit=123', [ 'limit' => '123' ] ],
26 [ '234', [ 'limit' => '234' ] ],
28 [ 'days=3', [ 'days' => '3' ] ],
30 [ 'days=0.25', [ 'days' => '0.25' ] ],
32 [ 'namespace=5', [ 'namespace' => '5' ] ],
34 [ 'namespace=5|3', [ 'namespace' => '5|3' ] ],
36 [ 'tagfilter=foo', [ 'tagfilter' => 'foo' ] ],
38 [ 'tagfilter=foo;bar', [ 'tagfilter' => 'foo;bar' ] ],
42 public function validateOptionsProvider() {
43 return [
45 // hidebots=1 is default for Special:RecentChanges
46 [ 'hideanons' => 1, 'hideliu' => 1 ],
47 true,
48 [ 'hideliu' => 1 ],