jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/392451 )

Change subject: Fix RdfVocabulary instantiations
......................................................................


Fix RdfVocabulary instantiations

Change I1fe6c6ba92 (Wikibase commit 0b3d4aa8b5) changed the first
parameter of RdfVocabulary to be an array instead of a single string, so
a few instantiations in the tests need to be updated. (In the main code,
we never instantiate an RdfVocabulary ourselves, we get it from the
Wikibase repotitory.)

Change-Id: I54dee4745bad93b16bd642b08eecedf21136becd
---
M tests/phpunit/DelegatingConstraintCheckerTest.php
M tests/phpunit/Helper/SparqlHelperTest.php
2 files changed, 7 insertions(+), 7 deletions(-)

Approvals:
  jenkins-bot: Verified
  Thiemo Mättig (WMDE): Looks good to me, approved



diff --git a/tests/phpunit/DelegatingConstraintCheckerTest.php 
b/tests/phpunit/DelegatingConstraintCheckerTest.php
index 72b9a60..a137413 100644
--- a/tests/phpunit/DelegatingConstraintCheckerTest.php
+++ b/tests/phpunit/DelegatingConstraintCheckerTest.php
@@ -84,7 +84,7 @@
                ] );
                $config = $this->getDefaultConfig();
                $rdfVocabulary = new RdfVocabulary(
-                       'http://www.wikidata.org/entity/',
+                       [ '' => 'http://www.wikidata.org/entity/' ],
                        'http://www.wikidata.org/wiki/Special:EntityData/'
                );
                $titleParser = $this->getTitleParserMock();
diff --git a/tests/phpunit/Helper/SparqlHelperTest.php 
b/tests/phpunit/Helper/SparqlHelperTest.php
index b03fda6..b071f5c 100644
--- a/tests/phpunit/Helper/SparqlHelperTest.php
+++ b/tests/phpunit/Helper/SparqlHelperTest.php
@@ -59,7 +59,7 @@
                                          ->setConstructorArgs( [
                                                  $this->getDefaultConfig(),
                                                  new RdfVocabulary(
-                                                         
'http://www.wikidata.org/entity/',
+                                                         [ '' => 
'http://www.wikidata.org/entity/' ],
                                                          
'http://www.wikidata.org/wiki/Special:EntityData/'
                                                  ),
                                                  new ItemIdParser(),
@@ -98,7 +98,7 @@
                                          ->setConstructorArgs( [
                                                  $this->getDefaultConfig(),
                                                  new RdfVocabulary(
-                                                         
'http://www.wikidata.org/entity/',
+                                                         [ '' => 
'http://www.wikidata.org/entity/' ],
                                                          
'http://www.wikidata.org/wiki/Special:EntityData/'
                                                  ),
                                                  new ItemIdParser(),
@@ -154,7 +154,7 @@
                        ->setConstructorArgs( [
                                $this->getDefaultConfig(),
                                new RdfVocabulary(
-                                       'http://www.wikidata.org/entity/',
+                                       [ '' => 
'http://www.wikidata.org/entity/' ],
                                        
'http://www.wikidata.org/wiki/Special:EntityData/'
                                ),
                                new ItemIdParser(),
@@ -354,7 +354,7 @@
                $sparqlHelper = new SparqlHelper(
                        $this->getDefaultConfig(),
                        new RdfVocabulary(
-                               'http://www.wikidata.org/entity/',
+                               [ '' => 'http://www.wikidata.org/entity/' ],
                                
'http://www.wikidata.org/wiki/Special:EntityData/'
                        ),
 
@@ -378,7 +378,7 @@
                                ]
                        ] ),
                        new RdfVocabulary(
-                               'http://www.wikidata.org/entity/',
+                               [ '' => 'http://www.wikidata.org/entity/' ],
                                
'http://www.wikidata.org/wiki/Special:EntityData/'
                        ),
                        new ItemIdParser(),
@@ -430,7 +430,7 @@
                $sparqlHelper = new SparqlHelper(
                        $this->getDefaultConfig(),
                        new RdfVocabulary(
-                               'http://www.wikidata.org/entity/',
+                               [ '' => 'http://www.wikidata.org/entity/' ],
                                
'http://www.wikidata.org/wiki/Special:EntityData/'
                        ),
                        new ItemIdParser(),

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I54dee4745bad93b16bd642b08eecedf21136becd
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikibaseQualityConstraints
Gerrit-Branch: master
Gerrit-Owner: Lucas Werkmeister (WMDE) <lucas.werkmeis...@wikimedia.de>
Gerrit-Reviewer: Thiemo Mättig (WMDE) <thiemo.kr...@wikimedia.de>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to