mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-27 17:20:40 +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
(cherry picked from commit dbe112dfa8
)
This commit is contained in:
parent
42e7c76e58
commit
0c9b414ec7
|
@ -35,6 +35,7 @@ class ContainmentSetTest extends MediaWikiIntegrationTestCase {
|
||||||
$list->expects( $this->once() )
|
$list->expects( $this->once() )
|
||||||
->method( 'getValues' )
|
->method( 'getValues' )
|
||||||
->will( $this->returnValue( $inner ) );
|
->will( $this->returnValue( $inner ) );
|
||||||
|
$list->method( 'getCacheKey' )->willReturn( '' );
|
||||||
|
|
||||||
$cached = new EchoCachedList( $wanCache, 'test_key', $list );
|
$cached = new EchoCachedList( $wanCache, 'test_key', $list );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue