Skip to content

Commit 8ede064

Browse files
committed
test(workflow): update notify targets message assertions
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 2d10c9c commit 8ede064

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/php/Unit/Workflow/NotifyAdminsOrGroupsProfileFieldChangeOperationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function testGetIconReturnsAdminIcon(): void {
7070

7171
public function testValidateOperationRejectsInvalidTargets(): void {
7272
$this->expectException(\UnexpectedValueException::class);
73-
$this->expectExceptionMessage('A valid target list is required');
73+
$this->expectExceptionMessage('A valid recipient list is required.');
7474

7575
$this->operation->validateOperation('notify-admins-or-groups', [], '{"targets":"invalid"}');
7676
}
@@ -120,7 +120,7 @@ public function testOnEventNotifiesResolvedTargets(): void {
120120
$notification->method('setSubject')->with('profile_field_updated')->willReturnSelf();
121121
$notification->method('setMessage')->with('profile_field_updated_message', ['admin', 'alice', 'Department'])->willReturnSelf();
122122
$notification->method('setParsedSubject')->with('Profile field updated')->willReturnSelf();
123-
$notification->method('setParsedMessage')->with('admin changed alice\'s Department profile field.')->willReturnSelf();
123+
$notification->method('setParsedMessage')->with('admin changed profile field "Department" for user alice.')->willReturnSelf();
124124
$notification->method('setIcon')->willReturnSelf();
125125
$notification->expects($this->once())->method('setUser')->with($this->logicalOr('bob', 'carol'))->willReturnSelf();
126126
$notifications[] = $notification;

0 commit comments

Comments
 (0)