aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2024-10-03 00:28:07 +0200
committerJoas Schilling <coding@schilljs.com>2024-10-21 11:28:53 +0200
commitb7a164427ce0ace00a67e1b20030c152d85e3619 (patch)
treebd01900138561ff08b1b623a81911f3587789785
parentc71097640a568662a07f5f28fb43e2675ab9afd4 (diff)
downloadnextcloud-server-b7a164427ce0ace00a67e1b20030c152d85e3619.tar.gz
nextcloud-server-b7a164427ce0ace00a67e1b20030c152d85e3619.zip
test: Fix wrongly mocked method
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--apps/encryption/tests/Crypto/CryptTest.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/encryption/tests/Crypto/CryptTest.php b/apps/encryption/tests/Crypto/CryptTest.php
index 738dfe0a2a0..eea4186377c 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();