如何在功能测试中测试电子邮件发送?

发布于 2024-12-19 09:02:08 字数 63 浏览 4 评论 0原文

我正在为我的应用程序编写功能测试,但我没有找到如何发送测试邮件(如 sf 1.x 中所示)。官方文档上有教程吗?

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 ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

沧笙踏歌 2024-12-26 09:02:08

您可以通过分析器来完成此操作。

有一本食谱解释了如何在测试中使用探查器:

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

SwiftMailer 应该在分析器中拥有自己的条目:swiftmailer

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文