title: "Then /^an email should (be sent|not be sent)$/" post_status: publish comment_status: open taxonomy: category: - wp-cli-handbook post_tag: - Behat Steps - References - Repos


Then /^an email should (be sent|not be sent)$/

检查邮件是否已发送(或未发送)。


用法

Scenario: 我的示例场景
  When I run `wp user reset-password 1`
  Then an email should be sent

Behat 步骤文档随每个版本从 WP-CLI 代码库自动生成。如需改进建议,请提交拉取请求。


相关