jenkins-bot has submitted this change and it was merged.
Change subject: Add getLanguageFallbackLabelDescriptionLookupFactory to client
......................................................................
Add getLanguageFallbackLabelDescriptionLookupFactory to client
Change-Id: Ibee836516a25bbeff3849c51a29ea9730a4b8ce1
---
M client/includes/WikibaseClient.php
M client/tests/phpunit/includes/WikibaseClientTest.php
2 files changed, 17 insertions(+), 0 deletions(-)
Approvals:
Bene: Looks good to me, approved
jenkins-bot: Verified
diff --git a/client/includes/WikibaseClient.php
b/client/includes/WikibaseClient.php
index 8f3d1ed..43643d5 100644
--- a/client/includes/WikibaseClient.php
+++ b/client/includes/WikibaseClient.php
@@ -50,6 +50,7 @@
use Wikibase\Lib\Changes\EntityChangeFactory;
use Wikibase\Lib\DataTypeDefinitions;
use Wikibase\Lib\FormatterLabelDescriptionLookupFactory;
+use Wikibase\Lib\Store\LanguageFallbackLabelDescriptionLookupFactory;
use Wikibase\Lib\LanguageNameLookup;
use Wikibase\Lib\OutputFormatSnakFormatterFactory;
use Wikibase\Lib\OutputFormatValueFormatterFactory;
@@ -345,6 +346,17 @@
}
/**
+ * @since 0.5
+ *
+ * @return LanguageFallbackLabelDescriptionLookupFactory
+ */
+ public function getLanguageFallbackLabelDescriptionLookupFactory() {
+ return new LanguageFallbackLabelDescriptionLookupFactory(
+ $this->getLanguageFallbackChainFactory(),
$this->getTermLookup(), $this->getTermBuffer()
+ );
+ }
+
+ /**
* Returns an instance of the default store.
*
* @since 0.1
diff --git a/client/tests/phpunit/includes/WikibaseClientTest.php
b/client/tests/phpunit/includes/WikibaseClientTest.php
index 9aa4292..5730d50 100644
--- a/client/tests/phpunit/includes/WikibaseClientTest.php
+++ b/client/tests/phpunit/includes/WikibaseClientTest.php
@@ -56,6 +56,11 @@
$this->assertInstanceOf(
'Wikibase\LanguageFallbackChainFactory', $returnValue );
}
+ public function testGetLanguageFallbackLabelDescriptionLookupFactory() {
+ $returnValue =
$this->getWikibaseClient()->getLanguageFallbackLabelDescriptionLookupFactory();
+ $this->assertInstanceOf(
'Wikibase\Lib\Store\LanguageFallbackLabelDescriptionLookupFactory',
$returnValue );
+ }
+
public function testGetStoreReturnType() {
$returnValue = $this->getWikibaseClient()->getStore();
$this->assertInstanceOf( 'Wikibase\ClientStore', $returnValue );
--
To view, visit https://gerrit.wikimedia.org/r/232780
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ibee836516a25bbeff3849c51a29ea9730a4b8ce1
Gerrit-PatchSet: 9
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Lucie Kaffee <[email protected]>
Gerrit-Reviewer: Bene <[email protected]>
Gerrit-Reviewer: Hoo man <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits