jenkins-bot has submitted this change and it was merged.

Change subject: Provide config when constructing WikiImporter in RepoHooksTest
......................................................................


Provide config when constructing WikiImporter in RepoHooksTest

Constructing WikiImporter without Config was depercated in 1.25 and caused
RepoHooksTest to fail.

Change-Id: Idfadf462d9e4cfdfe7213cdc46161cfc300d2261
---
M repo/tests/phpunit/includes/RepoHooksTest.php
1 file changed, 2 insertions(+), 1 deletion(-)

Approvals:
  Aude: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/repo/tests/phpunit/includes/RepoHooksTest.php 
b/repo/tests/phpunit/includes/RepoHooksTest.php
index 55cc32c..da74186 100644
--- a/repo/tests/phpunit/includes/RepoHooksTest.php
+++ b/repo/tests/phpunit/includes/RepoHooksTest.php
@@ -2,6 +2,7 @@
 
 namespace Wikibase\Tests;
 
+use ConfigFactory;
 use DerivativeContext;
 use OutputPage;
 use RequestContext;
@@ -145,7 +146,7 @@
                wfRestoreWarnings();
 
                $source = $this->getMockImportStream( $xml );
-               $importer = new WikiImporter( $source );
+               $importer = new WikiImporter( $source, 
ConfigFactory::getDefaultInstance()->makeConfig( 'main' ) );
 
                $importer->setNoticeCallback( function() {
                        // Do nothing for now. Could collect and compare 
notices.

-- 
To view, visit https://gerrit.wikimedia.org/r/170298
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Idfadf462d9e4cfdfe7213cdc46161cfc300d2261
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Tobias Gritschacher <[email protected]>
Gerrit-Reviewer: Aude <[email protected]>
Gerrit-Reviewer: Daniel Kinzler <[email protected]>
Gerrit-Reviewer: JanZerebecki <[email protected]>
Gerrit-Reviewer: Thiemo Mättig (WMDE) <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to