Skip to content

Commit

Permalink
fixup! fixup! fix(conversations): fix password enforcement logic error
Browse files Browse the repository at this point in the history
  • Loading branch information
miaulalala committed Dec 11, 2024
1 parent 9b5a4b1 commit 5ab50ed
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/php/Service/RoomServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5ab50ed

Please sign in to comment.