Codeception Mailtrap Module
This package provides a Mailtrap module for Codeception.
Installation
You need to add the repository into your composer.json file
composer require --dev whatdafox/codeception-mailtrapUsage
You can use this module as any other Codeception module, by adding 'Mailtrap' to the enabled modules in your Codeception suite configurations.
Add Mailtrap to your list of modules
modules:
enabled: [Filesystem, FunctionalHelper, Db, Mailtrap]Setup the configuration variables
- The
client_idtoken can be found on the pagehttps://mailtrap.io/public_api - The
inbox_idcan 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_HEREUpdate Codeception build
codecept buildYou're all set up!