refactor(tests): `returnValue` is deprecated

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
pull/55870/head
Ferdinand Thiessen 2025-10-21 00:24:51 +07:00
parent b7488550f7
commit b2e767d98c
No known key found for this signature in database
GPG Key ID: 45FAE7268762B400
1 changed files with 2 additions and 1 deletions

@ -150,7 +150,8 @@ class FileCacheTest extends TestCache {
->method('filemtime') ->method('filemtime')
->willReturn(100); ->willReturn(100);
$mockStorage->expects($this->atLeastOnce()) $mockStorage->expects($this->atLeastOnce())
->method('unlink')->willReturnOnConsecutiveCalls($this->throwException($testException), $this->returnValue(true)); ->method('unlink')
->willReturnOnConsecutiveCalls($this->throwException($testException), true);
$this->instance->set('key1', 'value1'); $this->instance->set('key1', 'value1');
$this->instance->set('key2', 'value2'); $this->instance->set('key2', 'value2');