This commit is contained in:
2025-11-03 16:22:33 +01:00
parent 7654db4e39
commit 662e962549
121 changed files with 132 additions and 172 deletions

View File

@@ -63,7 +63,7 @@ class NotificationMailerTest extends TestCase
// a mail only to user1 and user3 should have been sent
$mailer->send(Argument::that(function (Email $email) {
return array_any($email->getTo(), fn($address) => 'user1@foo.com' === $address->getAddress() || 'user3@foo.com' === $address->getAddress());
return array_any($email->getTo(), fn ($address) => 'user1@foo.com' === $address->getAddress() || 'user3@foo.com' === $address->getAddress());
}))->shouldBeCalledTimes(2);
$objectManager = $this->prophesize(EntityManagerInterface::class);
@@ -96,7 +96,7 @@ class NotificationMailerTest extends TestCase
// a mail only to user1 and user3 should have been sent
$mailer->send(Argument::that(function (Email $email) {
return array_any($email->getTo(), fn($address) => 'user1@foo.com' === $address->getAddress());
return array_any($email->getTo(), fn ($address) => 'user1@foo.com' === $address->getAddress());
}))->shouldBeCalledTimes(1);
$objectManager = $this->prophesize(EntityManagerInterface::class);