Thiemo Mättig (WMDE) has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/237374

Change subject: Fix wrong exception in LabelDescriptionLookup mock
......................................................................

Fix wrong exception in LabelDescriptionLookup mock

Change-Id: Ie8896c5341a9154ba369dbe1a4990d8dd075e5a3
---
M lib/tests/phpunit/formatters/EntityIdHtmlLinkFormatterTest.php
1 file changed, 4 insertions(+), 3 deletions(-)


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

diff --git a/lib/tests/phpunit/formatters/EntityIdHtmlLinkFormatterTest.php 
b/lib/tests/phpunit/formatters/EntityIdHtmlLinkFormatterTest.php
index 2cc061d..7b571ff 100644
--- a/lib/tests/phpunit/formatters/EntityIdHtmlLinkFormatterTest.php
+++ b/lib/tests/phpunit/formatters/EntityIdHtmlLinkFormatterTest.php
@@ -2,11 +2,12 @@
 
 namespace Wikibase\Lib\Test;
 
-use OutOfBoundsException;
+use MediaWikiTestCase;
 use Title;
 use Wikibase\DataModel\Entity\EntityId;
 use Wikibase\DataModel\Entity\ItemId;
 use Wikibase\DataModel\Services\Lookup\LabelDescriptionLookup;
+use Wikibase\DataModel\Services\Lookup\LabelDescriptionLookupException;
 use Wikibase\DataModel\Term\Term;
 use Wikibase\DataModel\Term\TermFallback;
 use Wikibase\Lib\EntityIdHtmlLinkFormatter;
@@ -23,7 +24,7 @@
  * @licence GNU GPL v2+
  * @author Marius Hoch < h...@online.de >
  */
-class EntityIdHtmlLinkFormatterTest extends \MediaWikiTestCase {
+class EntityIdHtmlLinkFormatterTest extends MediaWikiTestCase {
 
        /**
         * @param Term $term
@@ -46,7 +47,7 @@
                $labelDescriptionLookup = $this->getMock( 
'Wikibase\DataModel\Services\Lookup\LabelDescriptionLookup' );
                $labelDescriptionLookup->expects( $this->any() )
                        ->method( 'getLabel' )
-                       ->will( $this->throwException( new 
OutOfBoundsException( 'meep' ) ) );
+                       ->will( $this->throwException( new 
LabelDescriptionLookupException( 'meep' ) ) );
 
                return $labelDescriptionLookup;
        }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie8896c5341a9154ba369dbe1a4990d8dd075e5a3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Thiemo Mättig (WMDE) <thiemo.maet...@wikimedia.de>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to