Skip to content

Commit

Permalink
Fix test step to only update ext-group-sync-error email logs
Browse files Browse the repository at this point in the history
  • Loading branch information
forevermatt committed Nov 15, 2024
1 parent 2a77851 commit bb6ec9d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions application/features/bootstrap/EmailContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -1379,12 +1379,13 @@ public function iSentAnExternalGroupsSyncErrorEmailHourAgo($numberOfHours)
$numberOfHours
);

/** @var EmailLog[] $emailLogs */
$emailLogs = EmailLog::find()->all();
$emailLogs = EmailLog::findAll([
'message_type' => EmailLog::MESSAGE_TYPE_EXT_GROUP_SYNC_ERRORS,
]);

Assert::notEmpty(
$emailLogs,
'No email logs found to update the sent_at value for'
'No external-group sync-error email logs found to set the sent_at value for'
);

foreach ($emailLogs as $emailLog) {
Expand Down

0 comments on commit bb6ec9d

Please sign in to comment.