This package provides a Mailtrap module for Codeception.
You need to add the repository into your composer.json file
composer require --dev whatdafox/codeception-mailtrap
You can use this module as any other Codeception module, by adding 'Mailtrap' to the enabled modules in your Codeception suite configurations.
modules:
enabled: [Filesystem, FunctionalHelper, Db, Mailtrap]
- The
client_id
token can be found on the pagehttps://mailtrap.io/public_api
- The
inbox_id
can be found in the url when visiting the website: https://mailtrap.io/inboxes/`12345`/messages.
modules:
enabled: [Filesystem, FunctionalHelper, Db, Mailtrap]
config:
Mailtrap:
client_id: ADD_YOUR_TOKEN_HERE
inbox_id: ADD_YOUR_INBOX_NAME_HERE
Update Codeception build
codecept build
You're all set up!