From a4a1838575554a091c522c4b29d5114f6ccafe50 Mon Sep 17 00:00:00 2001 From: Lucas Werkmeister Date: Tue, 30 Mar 2021 16:30:13 +0200 Subject: [PATCH] Update WikibaseRepo::getStore() calls Bug: T277490 Depends-On: If695acdbe2b00c8be2bb243a2a4680fa1b142e1c --- maintenance/importEntities.php | 2 +- tests/integration/ApiEntityLookupIntegrationTest.php | 2 +- tests/integration/EntityImporterFactoryTest.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/maintenance/importEntities.php b/maintenance/importEntities.php index b294662..8e08b31 100644 --- a/maintenance/importEntities.php +++ b/maintenance/importEntities.php @@ -118,7 +118,7 @@ private function newEntityIdListBuilderFactory() { private function newEntityImporter() { $entityImporterFactory = new EntityImporterFactory( - WikibaseRepo::getDefaultInstance()->getStore()->getEntityStore(), + WikibaseRepo::getStore()->getEntityStore(), wfGetLB(), $this->logger, $this->getConfig()->get( 'WBImportSourceApi' ) diff --git a/tests/integration/ApiEntityLookupIntegrationTest.php b/tests/integration/ApiEntityLookupIntegrationTest.php index 42914e9..3e0dca5 100644 --- a/tests/integration/ApiEntityLookupIntegrationTest.php +++ b/tests/integration/ApiEntityLookupIntegrationTest.php @@ -35,7 +35,7 @@ public function testGetEntity() { private function getApiEntityLookup() { $entityImporterFactory = new EntityImporterFactory( - WikibaseRepo::getDefaultInstance()->getStore()->getEntityStore(), + WikibaseRepo::getStore()->getEntityStore(), wfGetLB(), $this->newLogger(), 'https://www.wikidata.org/w/api.php' diff --git a/tests/integration/EntityImporterFactoryTest.php b/tests/integration/EntityImporterFactoryTest.php index 0878fc6..d224b75 100644 --- a/tests/integration/EntityImporterFactoryTest.php +++ b/tests/integration/EntityImporterFactoryTest.php @@ -31,7 +31,7 @@ public function testGetApiEntityLookup() { private function newEntityImporterFactory() { return new EntityImporterFactory( - WikibaseRepo::getDefaultInstance()->getStore()->getEntityStore(), + WikibaseRepo::getStore()->getEntityStore(), wfGetLB(), $this->newLogger(), 'https://www.wikidata.org/w/api.php'