jenkins-bot has submitted this change and it was merged.
Change subject: View: Don't depend on EntityInfoTermLookup
......................................................................
View: Don't depend on EntityInfoTermLookup
Change-Id: I9ea500bc921bbfb6b7e81c65868272242822332c
---
M repo/tests/phpunit/includes/View/EntityViewFactoryTest.php
1 file changed, 2 insertions(+), 6 deletions(-)
Approvals:
Daniel Kinzler: Looks good to me, approved
jenkins-bot: Verified
diff --git a/repo/tests/phpunit/includes/View/EntityViewFactoryTest.php
b/repo/tests/phpunit/includes/View/EntityViewFactoryTest.php
index 965b97f..0c29d39 100644
--- a/repo/tests/phpunit/includes/View/EntityViewFactoryTest.php
+++ b/repo/tests/phpunit/includes/View/EntityViewFactoryTest.php
@@ -7,9 +7,7 @@
use Wikibase\Lib\EntityIdFormatter;
use Wikibase\Lib\EntityIdFormatterFactory;
use Wikibase\Lib\SnakFormatter;
-use Wikibase\Lib\Store\EntityInfo;
-use Wikibase\Lib\Store\EntityInfoTermLookup;
-use Wikibase\Lib\Store\LanguageLabelLookup;
+use Wikibase\Lib\Store\LabelLookup;
use Wikibase\Repo\View\EntityViewFactory;
/**
@@ -25,14 +23,12 @@
$entityViewFactory = $this->getEntityViewFactory();
$languageFallback = new LanguageFallbackChain( array() );
- $termLookup = new EntityInfoTermLookup( new EntityInfo( array()
) );
- $labelLookup = new LanguageLabelLookup( $termLookup, 'de' );
$entityView = $entityViewFactory->newEntityView(
$entityType,
'de',
$languageFallback,
- $labelLookup
+ $this->getMock( 'Wikibase\Lib\Store\LabelLookup' )
);
$this->assertInstanceOf( $expectedClass, $entityView );
--
To view, visit https://gerrit.wikimedia.org/r/180167
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I9ea500bc921bbfb6b7e81c65868272242822332c
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Adrian Lang <[email protected]>
Gerrit-Reviewer: Daniel Kinzler <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits