Just a WordPress extension for Behat
Prepare your composer
{
"require": {
"wdalmut/wordpress-extension": "*"
}
}
# behat.yml
default:
extensions:
Behat\MinkExtension\Extension:
base_url: 'http://wp.127.0.0.1.xip.io'
goutte: ~
show_cmd: "firefox %s"
Corley\WordPressExtension\Extension:
path: "../wordpress"
Just add the WordPress context
use Corley\WordPressExtension\Context\WordPressContext;
class FeatureContext extends BehatContext
{
public function __construct(array $parameters)
{
//...
$this->useContext('wordpress', new WordPressContext);
}
}
disable_functions=mail
Disable mail()
function