]> source.dussan.org Git - nextcloud-server.git/commitdiff
test: Fix wrongly mocked method
authorJoas Schilling <coding@schilljs.com>
Wed, 2 Oct 2024 22:28:07 +0000 (00:28 +0200)
committerJoas Schilling <coding@schilljs.com>
Mon, 7 Oct 2024 10:11:35 +0000 (12:11 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
apps/encryption/tests/Crypto/CryptTest.php

index a9869af99d96cc5e40094e8938206abd02456b52..9b6c822708328b313b6600bcb5f6184b2cfe3298 100644 (file)
@@ -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();