refactor(tests): returnValue is deprecated

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
Ferdinand Thiessen 2025-10-21 00:24:51 +02:00
parent b7488550f7
commit b2e767d98c
No known key found for this signature in database
GPG key ID: 45FAE7268762B400

View file

@ -150,7 +150,8 @@ class FileCacheTest extends TestCache {
->method('filemtime')
->willReturn(100);
$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('key2', 'value2');