Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

No messages in collector #22

Closed
fabiofabbrucci opened this issue Jan 28, 2012 · 2 comments
Closed

No messages in collector #22

fabiofabbrucci opened this issue Jan 28, 2012 · 2 comments

Comments

@fabiofabbrucci
Copy link

Hi, I followed this guide.
http://docs.behat.org/cookbook/using_the_profiler_with_minkbundle.html

I enabled the delivery of emails too, and i can confirm that I receive the email in my account running the test.
But what it means that if I had no messages in $collector = $profile->getCollector('swiftmailer')->getMessages(); ?

I implemented the methods you wrote in that guide ...

Thank you for your precious help.

In alternative, are there any guide that explain how to test symfony2 swiftmailer?

@stof
Copy link
Member

stof commented Jan 28, 2012

Are you sure that you get the right profile ? Take care about redirections: you will have 2 different profiles, one for the 302 response and the other for the next request done to the new location. See http://docs.behat.org/cookbook/intercepting_the_redirections.html

@stof
Copy link
Member

stof commented Jan 28, 2012

Also note the the CommonContexts repo contains a context implementing such steps (not exactly the same than the ones suggested in the cookbook): https://github.com/Behat/CommonContexts/blob/master/Behat/CommonContexts/MinkRedirectContext.php

@stof stof closed this as completed Feb 11, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants