wdalmut/wordpress-extension

WordPress extension for Behat

0.0.4 2014-03-22 09:17 UTC

This package is not auto-updated.

Last update: 2024-11-09 14:45:22 UTC


README

Just a WordPress extension for Behat

Install

Prepare your composer

{
    "require": {
        "wdalmut/wordpress-extension": "*"
    }
}

Configuration

# 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"

Add a base WordPress context

Just add the WordPress context

use Corley\WordPressExtension\Context\WordPressContext;

class FeatureContext extends BehatContext
{
    public function __construct(array $parameters)
    {
        //...
        $this->useContext('wordpress', new WordPressContext);
    }
}

Tips

disable_functions=mail

Disable mail() function