mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-11 17:00:10 +00:00
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:
parent
6d053d3389
commit
dbe112dfa8
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in a new issue