fix tests

This commit is contained in:
root
2026-06-11 11:46:12 -04:00
parent c91fa2ce4d
commit 5ead80fdc7
1489 changed files with 11349 additions and 10305 deletions
@@ -7,6 +7,7 @@ use App\Services\EmailService;
class CommunicationSendService
{
private EmailService $mailer;
private CommunicationLogService $logService;
public function __construct(EmailService $mailer, CommunicationLogService $logService)
@@ -61,7 +62,7 @@ class CommunicationSendService
$sendOk = false;
}
if (!$sendOk && $error === null) {
if (! $sendOk && $error === null) {
$error = 'Mailer returned false';
}
@@ -90,6 +91,7 @@ class CommunicationSendService
private function normalizeEmails(array $values): array
{
$out = array_values(array_unique(array_filter(array_map('strval', $values))));
return array_values(array_filter($out, static function ($email) {
return $email !== '';
}));