From b2e767d98c15e62c2dac0113053daf04a5a2a0ca Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Tue, 21 Oct 2025 00:24:51 +0200 Subject: [PATCH] refactor(tests): `returnValue` is deprecated Signed-off-by: Ferdinand Thiessen --- tests/lib/Cache/FileCacheTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/lib/Cache/FileCacheTest.php b/tests/lib/Cache/FileCacheTest.php index be27ff04f09..9ba19553cf1 100644 --- a/tests/lib/Cache/FileCacheTest.php +++ b/tests/lib/Cache/FileCacheTest.php @@ -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');