wdalmut/wordpress-extension

WordPress extension for Behat

Installs: 649

Dependents: 0

Stars: 9

Watchers: 2

Forks: 8

Language: PHP

0.0.4 2014-03-22 09:17 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