Tobias Gritschacher has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/170298

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(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/98/170298/1

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: newchange
Gerrit-Change-Id: Idfadf462d9e4cfdfe7213cdc46161cfc300d2261
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Tobias Gritschacher <[email protected]>

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

Reply via email to