Skip to content

Instantly share code, notes, and snippets.

@JohnDeeBDD
Last active November 3, 2017 21:51
Show Gist options
  • Save JohnDeeBDD/fa190c504fe243270230af6418d47d76 to your computer and use it in GitHub Desktop.
Save JohnDeeBDD/fa190c504fe243270230af6418d47d76 to your computer and use it in GitHub Desktop.
A sample YML configuation for acceptance testing WordPress Codeception
actor: AcceptanceTester
modules:
enabled:
- WPDb
- WPWebDriver
- Asserts
- \Helper\Acceptance
config:
WPDb:
dsn: 'mysql:host=localhost;dbname=wordpress'
user: 'wordpressuser'
password: 'password'
populate: true
cleanup: true
url: 'http://localhost'
urlReplacement: false #if true: replace the hardcoded dump URL with the one above
tablePrefix: 'wp_'
dump: 'tests/_data/MyDumpFile.sql'
populator: 'sudo mysql wordpress < tests/_data/MyDumpFile.sql -p'
WPWebDriver:
url: 'http://localhost'
window_size: maximize
adminUsername: 'admin'
adminPassword: 'password'
adminPath: '/wp-admin'
port: 4444
browser: phantomjs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment