2017 © Pedro Peláez
 

library laravel-codeception-email-assertions

This Module for codeception should enable easy assertions for emails with laravel 5.1+

image

tecbeast/laravel-codeception-email-assertions

This Module for codeception should enable easy assertions for emails with laravel 5.1+

  • Monday, June 19, 2017
  • by tecbeast
  • Repository
  • 1 Watchers
  • 2 Stars
  • 2,568 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 18 % Grown

The README.md

Installation

    composer require tecbeast/laravel-codeception-email-assertions

Adapt codeceptions *.suite.yml file., (*1)

E.g., (*2)

class_name: UnitTester
modules:
    enabled:
        - Laravel5 # this is needed before EmailAssertions
        - EmailAssertions # this contains the email assertions

Assertions

All assertions will always look for the last email sent in the current test. The assertions should explain them self :)., (*3)

    $I->seeEmailWasSent();
    $I->seeNoEmailWasSent();
    $I->seeEmailWasSentTo('to@domain.com');
    $I->seeEmailWasNotSentTo('from@domain.com');
    $I->seeEmailWasSentFrom('from@domain.com');
    $I->seeEmailWasNotSentFrom('to@domain.com');
    $I->seeEmailWasNotSentFrom('to@domain.com');
    $I->seeEmailContains('Hello');
    $I->seeEmailContainsNot('Laravel');

The Versions

19/06 2017

dev-master

9999999-dev

This Module for codeception should enable easy assertions for emails with laravel 5.1+

  Sources   Download

MIT

The Requires

 

by Avatar tecbeast

19/06 2017

1.0.0

1.0.0.0

This Module for codeception should enable easy assertions for emails with laravel 5.1+

  Sources   Download

MIT

The Requires

 

by Avatar tecbeast

19/06 2017

0.1.1

0.1.1.0

This Module for codeception should enable easy assertions for emails with laravel 5.1+

  Sources   Download

MIT

The Requires

 

by Avatar tecbeast

19/06 2017

0.1.0

0.1.0.0

This Module for codeception should enable easy assertions for emails with laravel 5.1+

  Sources   Download

MIT

The Requires

 

by Avatar tecbeast