Replaces \TestingAccessWrapper (defined in core) with \Wikimedia\TestingAccessWrapper (defined in the composer package wikimedia/testing-access-wrapper). See https://gerrit.wikimedia.org/r/#/q/topic:librarize-testing-access-wrapper for downstream patches. The core version of the class is kept around for a while to avoid circular dependency problems. Bug: T163434 Change-Id: I52cc257e593da3d6c3b01a909e554a950225aec8
35 lines
695 B
PHP
35 lines
695 B
PHP
<?php
|
|
|
|
use Wikimedia\TestingAccessWrapper;
|
|
|
|
/**
|
|
* Test class for SpecialRecentchanges class
|
|
*
|
|
* @group Database
|
|
*
|
|
* @covers SpecialRecentChanges
|
|
*/
|
|
class SpecialRecentchangesTest extends AbstractChangesListSpecialPageTestCase {
|
|
protected function setUp() {
|
|
parent::setUp();
|
|
|
|
# setup the CLSP object
|
|
$this->changesListSpecialPage = TestingAccessWrapper::newFromObject(
|
|
new SpecialRecentchanges
|
|
);
|
|
}
|
|
|
|
public function provideParseParameters() {
|
|
return [
|
|
[ 'limit=123', [ 'limit' => '123' ] ],
|
|
|
|
[ '234', [ 'limit' => '234' ] ],
|
|
|
|
[ 'days=3', [ 'days' => '3' ] ],
|
|
|
|
[ 'namespace=5', [ 'namespace' => 5 ] ],
|
|
|
|
[ 'tagfilter=foo', [ 'tagfilter' => 'foo' ] ],
|
|
];
|
|
}
|
|
}
|