Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

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

About

WordPress extension for Behat

Resources

License

Packages

No packages published

Languages

You can’t perform that action at this time.