-
Notifications
You must be signed in to change notification settings - Fork 25
Added grabEmail* functions #107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added grabEmail* functions #107
Conversation
I guess the same limitations apply as with https://codeception.com/docs/modules/Symfony#seeEmailIsSent, right? If yes, I'd suggest to move the limitations list to the top of the page, then link from all 3 email methods to it. |
Just noticing that these limitations are about to change :-) https://github.com/Codeception/module-symfony/blob/master/src/Codeception/Module/Symfony/MailerAssertionsTrait.php#L25 |
Hey @ThomasLandauer, very good observation. All methods related to emails will still need The exception is that if you are sending emails from a symfony command and you want to make assertions with emails (which will be possible in version 2) you don't need to use So one option is to move that explanation to the top of the page as you suggest (and update the examples too?). |
@ThomasLandauer now that this is merged, can you please send a PR with the changes to the documentation? |
Yeah, but it will take a week or two :-( |
don't worry I'll wait |
the Symfony module can now directly call stopFollowingRedirects without the need for the REST module. |
Are the two weeks over already? ;-) The only thing that's missing is the explanation about the restriction (i.e. Since this can be explained in one sentence, I no longer suggest to move this on top of the page, cause referring users to it ("see XY for whatever...) is almost as long as explaining it right there ;-) So I'm suggesting to repeat this explanation identical for all three (?) email-related assertions:
Some questions about the current wording:
Which examples? BTW: Codeception/Codeception#6104 is getting more and more urgent - who's in charge of this rendering? |
Affirmative.
I'm ok with this.
No... It refers to the class Symfony\Component\Mailer\EventListener\MessageLoggerListener, which unfortunately seems not to be documented on Symfony.com . I came across it by reviewing the symfony code regarding email assertions and discovered that such a service exists and can be used for testing.
Totally agree.
docblock code examples like this one.
I'm not sure. I would think Arhell, who seems to be actively committing to the website repo. But the truth is I have no idea. |
grabSentEmails
function.grabLastSentEmail
function.Both are available in the Yii2 module: here and here.