tecbeast/laravel-codeception-email-assertions
最新稳定版本:2.0.0
Composer 安装命令:
composer require tecbeast/laravel-codeception-email-assertions
包简介
This Module for codeception should enable easy assertions for emails with laravel 5.1+
README 文档
README
composer require tecbeast/laravel-codeception-email-assertions
Adapt codeceptions *.suite.yml file.
E.g.
class_name: UnitTester
modules:
enabled:
- Laravel5 # this is needed before EmailAssertions
- EmailAssertions # this contains the email assertions
Assertions
All assertions will always look for the last email sent in the current test. The assertions should explain them self :).
$I->seeEmailWasSent();
$I->seeNoEmailWasSent();
$I->seeEmailWasSentTo('to@domain.com');
$I->seeEmailWasNotSentTo('from@domain.com');
$I->seeEmailWasSentFrom('from@domain.com');
$I->seeEmailWasNotSentFrom('to@domain.com');
$I->seeEmailWasNotSentFrom('to@domain.com');
$I->seeEmailContains('Hello');
$I->seeEmailContainsNot('Laravel');
统计信息
- 总下载量: 10.21k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-06-19