Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.79 KB

File metadata and controls

42 lines (30 loc) · 1.79 KB

Latest Stable Version Total Downloads Latest Unstable Version License Get help on Codementor

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-mailtrap

Usage

You can use this module as any other Codeception module, by adding 'Mailtrap' to the enabled modules in your Codeception suite configurations.

You must setup the configuration variables: client_id and inbox_id.

Example of functional.suite.yml

class_name: FunctionalTester
modules:
    enabled: [Filesystem, FunctionalHelper, Laravel5, Db, Mailtrap]
    config:
        Laravel5:
            cleanup: true
        Mailtrap:
            client_id: ADD_YOUR_TOKEN_HERE
            inbox_id: ADD_YOUR_INBOX_NAME_HERE

You can find the token on the page https://mailtrap.io/public_api The inbox_id can be found in the url when visiting the website: https://mailtrap.io/inboxes/`12345`/messages.

After that you can run a build for Codeception to index your files properly and you're good to go.