You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// ...some code that sends 2 emails...// reboot kernel$this->mailer()->assertSentEmailCount(2);
It needs to be modified to the following to work:
// ...some code that sends 2 emails...$this->mailer()->assertSentEmailCount(2);
// reboot kernel
I believe the only way to achieve this is to add a lightweight bundle that registers a listener for MessageEvent and stores them statically (and resets them after the test). This would be similar to how zenstruck/messenger-test works.
This will also remove the requirement for the profiler to be enabled on some versions of Symfony:
The following doesn't currently work:
It needs to be modified to the following to work:
I believe the only way to achieve this is to add a lightweight bundle that registers a listener for
MessageEvent
and stores them statically (and resets them after the test). This would be similar to how zenstruck/messenger-test works.This will also remove the requirement for the profiler to be enabled on some versions of Symfony:
mailer-test/tests/InteractsWithMailerTest.php
Lines 173 to 206 in 4b13884
The text was updated successfully, but these errors were encountered: