Hoo man has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/354469 )

Change subject: Don't expect TestSites to be there in dumpRdfTest
......................................................................

Don't expect TestSites to be there in dumpRdfTest

Change-Id: If46c8e05d7190bc333e7bb72e5bdfdc70fb9eeb1
---
M repo/tests/phpunit/maintenance/dumpRdfTest.php
1 file changed, 9 insertions(+), 0 deletions(-)


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

diff --git a/repo/tests/phpunit/maintenance/dumpRdfTest.php 
b/repo/tests/phpunit/maintenance/dumpRdfTest.php
index 45a80fc..7ea9173 100644
--- a/repo/tests/phpunit/maintenance/dumpRdfTest.php
+++ b/repo/tests/phpunit/maintenance/dumpRdfTest.php
@@ -44,12 +44,21 @@
  * @covers Wikibase\DumpRdf
  *
  * @group Wikibase
+ * @group Database
  *
  * @license GPL-2.0+
  * @author Addshore
  */
 class DumpRdfTest extends MediaWikiLangTestCase {
 
+       protected function setUp() {
+               parent::setUp();
+
+               // Needed because SiteLinksRdfBuilder is constructed from 
global state
+               // in WikibaseRepo.entitytypes.php.
+               TestSites::insertIntoDb();
+       }
+
        public function testScript() {
                $dumpScript = new DumpRdf();
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: If46c8e05d7190bc333e7bb72e5bdfdc70fb9eeb1
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Hoo man <[email protected]>

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

Reply via email to