Re-routes all WordPress emails to Mailcatcher.
Place a plugins into wp-content/mu-plugins
like following.
<?php
/*
Plugin Name: mu-plugin for example.com
*/
require_once dirname( __FILE__ ) . '/vendor/autoload.php';
Create and place a composer.json into wp-content/mu-plugins
.
{
"name": "mu-plugins",
"authors": [
{
"name": "John Smith",
"email": "john@example.com"
}
],
"require-dev": {
"vccw/mailcatcher": "*"
}
}
Then run a composer
command.
$ composer install
$ git clone git@github.com:vccw-team/mailcatcher.git
$ cd mailcatche
$ composer install
After you run a composer install
, then run phpunit
.
$ phpunit