From 5ab50ed54e98a90d9809901ccf16d496739ecf5a Mon Sep 17 00:00:00 2001 From: Anna Larch Date: Wed, 11 Dec 2024 14:43:20 +0100 Subject: [PATCH] fixup! fixup! fix(conversations): fix password enforcement logic error --- tests/php/Service/RoomServiceTest.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/php/Service/RoomServiceTest.php b/tests/php/Service/RoomServiceTest.php index 1a04b9a2a27..82ed7bf11f3 100644 --- a/tests/php/Service/RoomServiceTest.php +++ b/tests/php/Service/RoomServiceTest.php @@ -280,9 +280,11 @@ public function testCreateConversation(int $type, string $name, string $ownerId, ->method('addUsers'); } - $this->hasher->expects(self::once()) - ->method('hash') - ->willReturn($password); + if($password !== '') { + $this->hasher->expects(self::once()) + ->method('hash') + ->willReturn($password); + } $this->manager->expects($this->once()) ->method('createRoom') ->with($type, $name, $objectType, $objectId, $password)