aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2024-10-03 00:28:07 +0200
committerJoas Schilling <coding@schilljs.com>2024-10-07 12:11:35 +0200
commit4312473fbc1318e4a53dda7161fa85ee7aed9eed (patch)
treed87bb1eee7868d8d2c216f0a67fc1e166256d7ff /apps
parent843f638315a6379e2fb896786e3f8465fb3134cf (diff)
downloadnextcloud-server-4312473fbc1318e4a53dda7161fa85ee7aed9eed.tar.gz
nextcloud-server-4312473fbc1318e4a53dda7161fa85ee7aed9eed.zip
test: Fix wrongly mocked method
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps')
-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 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();