From 4312473fbc1318e4a53dda7161fa85ee7aed9eed Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 3 Oct 2024 00:28:07 +0200 Subject: [PATCH] test: Fix wrongly mocked method Signed-off-by: Joas Schilling --- apps/encryption/tests/Crypto/CryptTest.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/encryption/tests/Crypto/CryptTest.php b/apps/encryption/tests/Crypto/CryptTest.php index a9869af99d9..9b6c8227083 100644 --- a/apps/encryption/tests/Crypto/CryptTest.php +++ b/apps/encryption/tests/Crypto/CryptTest.php @@ -37,8 +37,7 @@ class CryptTest extends TestCase { ->disableOriginalConstructor() ->getMock(); $this->logger->expects($this->any()) - ->method('warning') - ->willReturn(true); + ->method('warning'); $this->userSession = $this->getMockBuilder(IUserSession::class) ->disableOriginalConstructor() ->getMock(); -- 2.39.5