test: Fix wrongly mocked method

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/48539/head
Joas Schilling 1 year ago
parent 843f638315
commit 4312473fbc
No known key found for this signature in database
GPG Key ID: F72FA5B49FFA96B0
  1. 3
      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();

Loading…
Cancel
Save