PHPackages                             ixis/codeception-drupal-mail - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. ixis/codeception-drupal-mail

AbandonedArchivedLibrary[Testing &amp; Quality](/categories/testing)

ixis/codeception-drupal-mail
============================

A Codeception module to provide Drupal mail system testing support.

0.2.2(10y ago)06.2kMITPHP

Since Aug 27Pushed 10y ago2 watchersCompare

[ Source](https://github.com/ixis/codeception-drupal-mail)[ Packagist](https://packagist.org/packages/ixis/codeception-drupal-mail)[ Docs](https://github.com/ixis/codeception-drupal-mail)[ RSS](/packages/ixis-codeception-drupal-mail/feed)WikiDiscussions develop Synced yesterday

READMEChangelog (1)Dependencies (1)Versions (6)Used By (0)

\#Drupal Mail System

[Codeception](http://www.codeception.com) module for testing the [Drupal](http://drupal.org) email system.

```
// 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](https://api.drupal.org/api/drupal/modules!system!system.mail.inc/function/TestingMailSystem%3A%3Amail/7) class which stores the emails in a drupal variable.

\#Requirements

- Drupal 7
- The [DrupalVariable](https://github.com/ixis/codeception-drupal-variable) codeception module.

\#Install

Install using composer:

```
"require": {
     "ixis/codeception-drupal-mail": "dev-develop"
   }

```

\#Configure

Add 'DrupalMailSystem' and 'DrupalVariable' module to the suite configuration.

```
class_name: AcceptanceTester
modules:
    enabled:
        - DrupalMailSystem
        - DrupalVariable

```

DrupalVariable is required to read the variable that is used to temporarily store the email content.

To configure DrupalVariable see the [ReadMe](https://github.com/ixis/codeception-drupal-variable/blob/master/README.md)

\##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"}'`

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~177 days

Total

4

Last Release

3793d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/216767?v=4)[Paul Byrne](/maintainers/pfaocle)[@pfaocle](https://github.com/pfaocle)

![](https://www.gravatar.com/avatar/79d2dd7d81f5d08fdbcc0ca820065de4d51933cdf50e941e9f5faa130d5c3f44?d=identicon)[andyr](/maintainers/andyr)

---

Top Contributors

[![ixisandyr](https://avatars.githubusercontent.com/u/5859244?v=4)](https://github.com/ixisandyr "ixisandyr (6 commits)")[![pfaocle](https://avatars.githubusercontent.com/u/216767?v=4)](https://github.com/pfaocle "pfaocle (1 commits)")

### Embed Badge

![Health badge](/badges/ixis-codeception-drupal-mail/health.svg)

```
[![Health](https://phpackages.com/badges/ixis-codeception-drupal-mail/health.svg)](https://phpackages.com/packages/ixis-codeception-drupal-mail)
```

###  Alternatives

[dms/phpunit-arraysubset-asserts

This package provides ArraySubset and related asserts once deprecated in PHPUnit 8

14429.2M359](/packages/dms-phpunit-arraysubset-asserts)[phpbenchmark/phpbenchmark

Easy to use benchmark toolkit for your PHP-application. This library contains classes for comparing algorithms as well as benchmarking application responses

8011.5k2](/packages/phpbenchmark-phpbenchmark)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
