Skip to content
Prev Previous commit
Next Next commit
test: Fix wrongly mocked method
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Oct 7, 2024
commit 4312473fbc1318e4a53dda7161fa85ee7aed9eed
3 changes: 1 addition & 2 deletions apps/encryption/tests/Crypto/CryptTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ protected function setUp(): void {
->disableOriginalConstructor()
->getMock();
$this->logger->expects($this->any())
->method('warning')
->willReturn(true);
->method('warning');
$this->userSession = $this->getMockBuilder(IUserSession::class)
->disableOriginalConstructor()
->getMock();
Expand Down