mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-13 18:37:07 +00:00
WikiImporter: Pass Authority for permissions instead of global context
Depends-On: Iea1d03dcdcbda2f9a9adbff1b0d319efd22c4d86 Change-Id: I4ec83fe0a887398a216e2b0392dfa852218fef1e
This commit is contained in:
parent
b49339f13d
commit
855af15fba
|
@ -46,7 +46,7 @@ class ThreadItemStoreTest extends IntegrationTestCase {
|
|||
$source = new ImportStringSource( static::getText( "$dir/dump.xml" ) );
|
||||
$importer = MediaWikiServices::getInstance()
|
||||
->getWikiImporterFactory()
|
||||
->getWikiImporter( $source );
|
||||
->getWikiImporter( $source, $this->getTestSysop()->getAuthority() );
|
||||
// `true` means to assign edits to the users we created above
|
||||
$importer->setUsernamePrefix( 'import', true );
|
||||
$importer->doImport();
|
||||
|
|
Loading…
Reference in a new issue