Jeroen De Dauw has submitted this change and it was merged.
Change subject: Update store setup and teardown in
EntitiesByPropertyValueApiTest
......................................................................
Update store setup and teardown in EntitiesByPropertyValueApiTest
Change-Id: Ibab0bb678526eb1ed8565ec587e693a2828cc9f0
---
M Tests/System/Wikibase/Query/EntitiesByPropertyValueApiTest.php
1 file changed, 2 insertions(+), 10 deletions(-)
Approvals:
Addshore: Looks good to me, approved
jenkins-bot: Verified
diff --git a/Tests/System/Wikibase/Query/EntitiesByPropertyValueApiTest.php
b/Tests/System/Wikibase/Query/EntitiesByPropertyValueApiTest.php
index c8e8e54..82763db 100644
--- a/Tests/System/Wikibase/Query/EntitiesByPropertyValueApiTest.php
+++ b/Tests/System/Wikibase/Query/EntitiesByPropertyValueApiTest.php
@@ -36,28 +36,20 @@
return ExtensionAccess::getWikibaseQuery()->getQueryStore();
}
- protected function reinitializeStore() {
- $queryStore = $this->getQueryStore();
- $setup = $queryStore->newSetup();
-
- $setup->uninstall();
- $setup->install();
- }
-
public function setUp() {
parent::setUp();
$this->itemId = new ItemId( self::ITEM_ID_STRING );
$this->propertyId = new PropertyId( self::PROPERTY_ID_STRING );
- $this->reinitializeStore();
+ $this->getQueryStore()->newSetup()->install();
$this->createNewProperty();
$this->insertNewItem();
}
public function tearDown() {
- $this->reinitializeStore();
+ $this->getQueryStore()->newSetup()->uninstall();
parent::tearDown();
}
--
To view, visit https://gerrit.wikimedia.org/r/88035
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ibab0bb678526eb1ed8565ec587e693a2828cc9f0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikibaseQuery
Gerrit-Branch: master
Gerrit-Owner: Jeroen De Dauw <[email protected]>
Gerrit-Reviewer: Addshore <[email protected]>
Gerrit-Reviewer: Jeroen De Dauw <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits