kocal / symfony-mailer-testing
Test your emails with Behat and Cypress, when using the Symfony Mailer component.
Installs: 206 848
Dependents: 0
Suggesters: 0
Security: 0
Stars: 10
Watchers: 4
Forks: 2
Open Issues: 1
Requires
- php: ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0
- ext-json: *
- phpunit/phpunit: ^9.1 || ^10.0
- symfony/console: ^5.4 || ^6.0 || ^7.0
- symfony/mailer: ^5.4 || ^6.0 || ^7.0
Requires (Dev)
- bamarni/composer-bin-plugin: ^1.8
- behat/behat: ^3.6
- friends-of-behat/symfony-extension: ^2.2
- nyholm/psr7: ^1.8
- symfony/framework-bundle: ^5.4 || ^6.0 || ^7.0
- symfony/psr7-pack: ^1.0
This package is auto-updated.
Last update: 2024-10-31 07:58:50 UTC
README
Test emails sent by the Symfony Mailer with Behat and Cypress.
This testing library provides the same PHPUnit assertions for Email Messages from Symfony, but for Behat and Cypress:
assertEmailCount
assertQueuedEmailCount
assertEmailIsQueued
assertEmailIsNotQueued
assertEmailAttachmentCount
assertEmailTextBodyContains
assertEmailTextBodyNotContains
assertEmailHtmlBodyContains
assertEmailHtmlBodyNotContains
assertEmailHasHeader
assertEmailNotHasHeader
assertEmailHeaderSame
assertEmailHeaderNotSame
assertEmailAddressContains
With additional assertions:
assertEmailSubjectSame
assertEmailSubjectContains
assertEmailSubjectMatches
assertEmailTextBodyMatches
assertEmailTextBodyNotMatches
assertEmailHtmlBodyMatches
assertEmailHtmlBodyNotMatches
assertEmailAttachmentNameSame
assertEmailAttachmentNameMatches
Documentation
The documentation can be found at ./docs
.