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
(cherry picked from commit e5b869325aaf937d3d5b28fb666fc5bd4bac2fa5)
---
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/171235
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: wmf/1.25wmf7
Gerrit-Owner: Aude <[email protected]>
Gerrit-Reviewer: Aude <[email protected]>
Gerrit-Reviewer: Tobias Gritschacher <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits