jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/390597 )
Change subject: Make context also return the language
......................................................................
Make context also return the language
For motivation, see I2417fe9d2 and conversation in I9316cc0ab.
Change-Id: Iff4b96a9d9f7b1d4cfb202d329dcff8d2241cbaa
---
M repo/tests/phpunit/includes/Actions/HistoryEntityActionTest.php
1 file changed, 3 insertions(+), 3 deletions(-)
Approvals:
jenkins-bot: Verified
Thiemo Mättig (WMDE): Looks good to me, approved
diff --git a/repo/tests/phpunit/includes/Actions/HistoryEntityActionTest.php
b/repo/tests/phpunit/includes/Actions/HistoryEntityActionTest.php
index 7d946bf..c1d4c3f 100644
--- a/repo/tests/phpunit/includes/Actions/HistoryEntityActionTest.php
+++ b/repo/tests/phpunit/includes/Actions/HistoryEntityActionTest.php
@@ -62,9 +62,6 @@
->disableOriginalConstructor()
->getMock();
- $output->method( 'getLanguage' )
- ->willReturn( Language::factory( self::DUMMY_LANGUAGE )
);
-
return $output;
}
@@ -94,6 +91,9 @@
$context->method( 'getOutput' )
->willReturn( $output );
+ $context->method( 'getLanguage' )
+ ->willReturn( Language::factory( self::DUMMY_LANGUAGE )
);
+
$output->expects( $this->once() )
->method( 'getContext' )
->willReturn( $context );
--
To view, visit https://gerrit.wikimedia.org/r/390597
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Iff4b96a9d9f7b1d4cfb202d329dcff8d2241cbaa
Gerrit-PatchSet: 5
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Matěj Suchánek <[email protected]>
Gerrit-Reviewer: Matěj Suchánek <[email protected]>
Gerrit-Reviewer: Thiemo Mättig (WMDE) <[email protected]>
Gerrit-Reviewer: WMDE-Fisch <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits