mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-27 17:10:19 +00:00
VectorComponentTableOfContentsTest: Add mocks for Message:: escaped() and rawParams()
Needed for new security patch. Change-Id: I9295a8e0f9f00b62d5206f6d7e40bb657f436510
This commit is contained in:
parent
124a4efa2f
commit
507de0f4e2
|
@ -176,6 +176,8 @@ class VectorComponentTableOfContentsTest extends \MediaWikiUnitTestCase {
|
|||
$localizer->method( 'msg' )->willReturnCallback( function ( $key, ...$params ) {
|
||||
$msg = $this->createMock( Message::class );
|
||||
$msg->method( '__toString' )->willReturn( $key );
|
||||
$msg->method( 'escaped' )->willReturn( $key );
|
||||
$msg->method( 'rawParams' )->will( $this->returnSelf() );
|
||||
$msg->method( 'text' )->willReturn( $key );
|
||||
return $msg;
|
||||
} );
|
||||
|
|
Loading…
Reference in a new issue