test: Fix wrongly mocked method

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2024-10-03 00:28:07 +02:00
parent c71097640a
commit b7a164427c
No known key found for this signature in database
GPG key ID: F72FA5B49FFA96B0

View 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();