8000 GitHub - AROBS/codeception-mailtrap-module
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

AROBS/codeception-mailtrap-module

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Codeception Mailtrap Module

This package provides a Mailtrap module for Codeception.

Installation

You need to add the repository into your composer.json file

 "repositories": [
    {
     ....
    },
    {
      "type": "vcs",
      "url": "https://github.com/anca-arobs/codeception-mailtrap-module"
    }

You can install this package through composer:

composer require anca-arobs/codeception-mailtrap-module

Usage

You can use this module as any other Codeception module, by adding 'MailTrapHelper' to the enabled modules in your Codeception suite configurations. You must setup the configuration variables: token and inbox.

Example of functional.suite.yml

class_name: FunctionalTester
modules:
    enabled: [Filesystem, FunctionalHelper, Laravel5, Db, MailTrapHelper]
    config:
        Laravel5:
            cleanup: true
        MailTrapHelper:
            token: ADD_YOUR_TOKEN_HERE
            inbox: ADD_YOUR_INBOX_NAME_HERE

You can find the token on the page https://mailtrap.io/public_api THe inbox name is on the home page.

After that you can run a build for codeception to index your files properly and you're good to go. You can use any method in the helper library

seeInLastEmail($expected);
cleanInbox();

etc

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%
0