WordPress extension for Behat
PHP
Latest commit 4b198dd Mar 22, 2014 @wdalmut Merge branch 'develop'
Permalink
Failed to load latest commit information.
features
src/Corley/WordPressExtension
.gitignore
LICENSE
README.md
behat.yml
composer.json
composer.lock

README.md

WordPress Extension for Behat

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