handbook/references/behat-steps/then-an-email-should-be-sent-not-be-sent.md
Pascal Birchler 264cb131bf
Fix handbook information architecture
- Organize files in folders according to the desired structure
- Use directory iterator to loop through all files and folders (makes generation more robust)
2025-06-25 15:38:39 +02:00

4.5 KiB

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

Expect an email to be sent (or not).


Usage

Scenario: My example scenario
  When I run `wp user reset-password 1`
  Then an email should be sent

Behat steps documentation is generated from the WP-CLI codebase on every release. To suggest improvements, please submit a pull request.