2017 © Pedro Peláez
 

library codeception-drupal-mail

A Codeception module to provide Drupal mail system testing support.

image

ixis/codeception-drupal-mail

A Codeception module to provide Drupal mail system testing support.

  • Thursday, February 11, 2016
  • by pfaocle
  • Repository
  • 4 Watchers
  • 0 Stars
  • 1,509 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 21 % Grown

The README.md

Drupal Mail System

Codeception module for testing the Drupal email system., (*1)


// Test to see expected number of emails sent. $I->seeNumberOfEmailsSent(1); // Clear emails from queue. $I->clearSentEmails(); // Check email fields contains text $I->seeSentEmail(array( "body" => "body contains this text", "subject" => "subject contains this text", ));

Relies on TestingMailSystem class which stores the emails in a drupal variable., (*2)

Requirements

Install

Install using composer:, (*3)

"require": {
     "ixis/codeception-drupal-mail": "~0.2"
   }

Configure

Add 'DrupalMailSystem' and 'DrupalVariable' module to the suite configuration., (*4)

class_name: AcceptanceTester
modules:
    enabled:
        - DrupalMailSystem
        - DrupalVariable

DrupalVariable is required to read the variable that is used to temporarily store the email content., (*5)

To configure DrupalVariable see the ReadMe, (*6)

Module configuration

  • 'enabled' - set to true to set the TestingMailSystem as default mail system ('mail_system') at the beginning of the suite run and to restore it at the end. If you set this to false the module expects you to have set this yourself.
    • drush vset --format=json 'mail_system' '{"default-system":"TestingMailSystem"}'

The Versions

11/02 2016

dev-master

9999999-dev https://github.com/ixis/codeception-drupal-mail

A Codeception module to provide Drupal mail system testing support.

  Sources   Download

MIT

The Requires

 

11/02 2016

0.2.2

0.2.2.0 https://github.com/ixis/codeception-drupal-mail

A Codeception module to provide Drupal mail system testing support.

  Sources   Download

MIT

The Requires

 

11/02 2016

dev-develop

dev-develop https://github.com/ixis/codeception-drupal-mail

A Codeception module to provide Drupal mail system testing support.

  Sources   Download

MIT

The Requires

 

09/02 2016

0.2.1

0.2.1.0 https://github.com/ixis/codeception-drupal-mail

A Codeception module to provide Drupal mail system testing support.

  Sources   Download

MIT

The Requires

 

09/02 2016

0.2.0

0.2.0.0 https://github.com/ixis/codeception-drupal-mail

A Codeception module to provide Drupal mail system testing support.

  Sources   Download

The Requires

 

27/08 2014

0.1

0.1.0.0

A Codeception module to provide Drupal mail system testing support.

  Sources   Download

The Requires

  • ixisandyr/codeception-drupal-variable *@dev