Tests: More complete mock to prevent php 8.1 warning

fixes:
ContainmentSetTest::testCachedListInnerListIsOnlyCalledOnce
strtr(): Passing null to parameter #1 ($string) of type string is deprecated

Change-Id: I9bb916383eda1176a2d56c06770a60c28431dfda
(cherry picked from commit dbe112dfa8)
This commit is contained in:
Brian Wolff 2022-10-03 11:20:43 -07:00
parent 90514f1da0
commit 8bb1fac8a0

View file

@ -35,6 +35,7 @@ class ContainmentSetTest extends MediaWikiIntegrationTestCase {
$list->expects( $this->once() )
->method( 'getValues' )
->will( $this->returnValue( $inner ) );
$list->method( 'getCacheKey' )->willReturn( '' );
$cached = new EchoCachedList( $wanCache, 'test_key', $list );