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
This commit is contained in:
Brian Wolff 2022-10-03 11:20:43 -07:00
parent 6d053d3389
commit dbe112dfa8

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 );