wdalmut / wordpress-extension
WordPress extension for Behat
Installs: 1 376
Dependents: 0
Suggesters: 0
Security: 0
Stars: 13
Watchers: 3
Forks: 21
Open Issues: 0
Requires
- behat/behat: 2.5.*@stable
- behat/mink-extension: *
Requires (Dev)
- behat/mink-goutte-driver: *
- phpunit/phpunit: 3.7.*
This package is not auto-updated.
Last update: 2024-12-21 15:29:14 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