mirror of
https://github.com/Universal-Omega/DynamicPageList3
synced 2024-11-30 19:04:32 +00:00
tests: pass $performer to WikiImporterFactory::getWikiImporter on 1.42
This commit is contained in:
parent
45c195f6bd
commit
a32213532c
|
@ -88,6 +88,11 @@ abstract class DPLIntegrationTestCase extends MediaWikiIntegrationTestCase {
|
|||
$source = new ImportStreamSource( $seedDataFile );
|
||||
$services = MediaWikiServices::getInstance();
|
||||
|
||||
if ( version_compare( MW_VERSION, '1.42', '>=' ) ) {
|
||||
$performer = $this->getTestSysop()->getAuthority();
|
||||
return $services->getWikiImporterFactory()->getWikiImporter( $source, $performer );
|
||||
}
|
||||
|
||||
return $services->getWikiImporterFactory()->getWikiImporter( $source );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue