From: Joas Schilling Date: Wed, 2 Oct 2024 22:28:07 +0000 (+0200) Subject: test: Fix wrongly mocked method X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4312473fbc1318e4a53dda7161fa85ee7aed9eed;p=nextcloud-server.git test: Fix wrongly mocked method Signed-off-by: Joas Schilling --- 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();