FriendlyContexts
FriendlyContexts copied to clipboard
SymfonyMailerContext
- [x] @Then no email should have been sent
- [x] @Then email with subject :subject should not be sent
- [x] @Then email should not be sent to :recipient
- [x] @Then email with subject :subject should not be sent to :recipient
- [x] @Then the following emails should not be sent:
- [x] @Then :count emails should have been sent
- [x] @Then email with subject :subject should have been sent
- [x] @Then email should have been sent to :recipient
- [x] @Then email with subject :subject should have been sent to :recipient
- [x] @Then the following emails should have been sent:
@PedroTroller I would like to add context class and write scenarios. But I am afraid I will need almost full symfony app, with container, kernel and everything. What do you think?
I think we need somthink like the fixture APP into KnpRevealsBundle : https://github.com/KnpLabs/KnpRevealBundle/tree/master/features/fixtures By the way, I need it too to test the entity part.
:+1:
What's about when sending an email and then immediately redirecting to another page ?? Using MinkRedirectContext is an alternative but I guess you have another better solution :)
@aitboudad Yes. I also submitted some improvements in https://github.com/Behat/CommonContexts/pull/54 but they never merge.
@PedroTroller Feedback is appreciated.
@umpirsky could you add a little bit of docs? Then we can merge it - personally I like it.
@akovalyov I was waiting for some @PedroTroller feedback.
@PedroTroller could you give any feedback on this cool work? :)
+1
Is this still up to date?