SymfonyMailerContext#112
Conversation
umpirsky
commented
Oct 25, 2014
- @then no email should have been sent
- @then email with subject :subject should not be sent
- @then email should not be sent to :recipient
- @then email with subject :subject should not be sent to :recipient
- @then the following emails should not be sent:
- @then :count emails should have been sent
- @then email with subject :subject should have been sent
- @then email should have been sent to :recipient
- @then email with subject :subject should have been sent to :recipient
- @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 |
There was a problem hiding this comment.
No, in fact you can't get a service with() get method. This method allow you to call others helpers.
There was a problem hiding this comment.
If you want to get the profiler service, you can describe the service like that :
https://github.com/KnpLabs/FriendlyContexts/blob/refactoring/new-extension/src/Knp/FriendlyExtension/Resources/config/symfony.yml
|
👍 |
|
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 Behat/CommonContexts#54 but they never merge. |
14f8c77 to
b27924c
Compare
25f4313 to
b28a1c3
Compare
|
@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 |
There was a problem hiding this comment.
I think it's 0 emails. :)
There was a problem hiding this comment.
There was a problem hiding this comment.
@cursedcoder I think your link is about saying "zeros" or "zeroes" and not how to accord the noun after zero. But maybe I'm missing something.
There was a problem hiding this comment.
Anyway, @umpirsky seems right on this one ;) http://english.stackexchange.com/a/13075