bux
bux

Reputation: 7739

How to test an email send in functional test?

I'm writing functional test for my application, but I don't find how test mails are sent (like in sf 1.x). An tutorial exist on official doc ?

Upvotes: 1

Views: 119

Answers (1)

Herzult
Herzult

Reputation: 3419

You can do it through the profiler.

There is a cookbook explaining how you can use the profiler from your tests:

http://symfony.com/doc/current/cookbook/testing/profiling.html

The SwiftMailer should have its own entry in the profiler: swiftmailer

Upvotes: 2

Related Questions