spiral / testing

Spiral Framework testing SDK
https://spiral.dev/docs/packages-testing
MIT License
8 stars 4 forks source link

fake_mailer return messages #42

Closed gam6itko closed 1 year ago

gam6itko commented 1 year ago

It will be very useful to get all valid messages after assertion.

 $messages = $fakeMailer->assertSent(Message::class, function (Message $message): bool {
            return \in_array('user@bc.local', $message->getTo());
        });
// ... do things with messages