Commit 46877e35 authored by Peter J. Herrel's avatar Peter J. Herrel
Browse files

remove behat featurecontext customization

parent 4363953d
......@@ -3,6 +3,10 @@ Feature: Inspect the Polylang API
Background:
Given a WP install
And I run `wp plugin install polylang`
And I run `wp plugin activate polylang`
And I run `wp pll lang create Dutch nl nl_NL`
And I run `wp pll doctor translate`
Scenario: List Polylang API functions
......
......@@ -422,10 +422,5 @@ class FeatureContext extends BehatContext implements ClosuredContextInterface {
);
$this->proc( 'wp core install', $install_args, $subdir )->run_check();
$this->proc( 'wp plugin install polylang', array(), $subdir )->run_check();
$this->proc( 'wp plugin activate polylang', array(), $subdir )->run_check();
$this->proc( 'wp pll lang create Dutch nl nl_NL', array(), $subdir )->run_check();
$this->proc( 'wp pll doctor translate', array(), $subdir )->run_check();
}
}
......@@ -3,6 +3,10 @@ Feature: Manage Polylang cache
Background:
Given a WP install
And I run `wp plugin install polylang`
And I run `wp plugin activate polylang`
And I run `wp pll lang create Dutch nl nl_NL`
And I run `wp pll doctor translate`
Scenario: Clear Polylang cache
......
......@@ -3,6 +3,10 @@ Feature: Troubleshoot Polylang
Background:
Given a WP install
And I run `wp plugin install polylang`
And I run `wp plugin activate polylang`
And I run `wp pll lang create Dutch nl nl_NL`
And I run `wp pll doctor translate`
Scenario: Use doctor functionality
......
......@@ -3,6 +3,10 @@ Feature: Manage Polylang flags
Background:
Given a WP install
And I run `wp plugin install polylang`
And I run `wp plugin activate polylang`
And I run `wp pll lang create Dutch nl nl_NL`
And I run `wp pll doctor translate`
Scenario: Set flag for language
......
......@@ -6,6 +6,10 @@ Feature: Manage Polylang languages
And an empty cache
And I run `wp core version`
And save STDOUT as {WP_VERSION}
And I run `wp plugin install polylang`
And I run `wp plugin activate polylang`
And I run `wp pll lang create Dutch nl nl_NL`
And I run `wp pll doctor translate`
@core-language
Scenario: Language CRUD commands
......
......@@ -3,6 +3,10 @@ Feature: Manage WordPress nav menus
Background:
Given a WP install
And I run `wp plugin install polylang`
And I run `wp plugin activate polylang`
And I run `wp pll lang create Dutch nl nl_NL`
And I run `wp pll doctor translate`
And I run `wp theme install twentysixteen --activate`
And I run `wp pll lang create Deutsch de de_DE`
......
......@@ -3,6 +3,10 @@ Feature: Manage Polylang settings
Background:
Given a WP install
And I run `wp plugin install polylang`
And I run `wp plugin activate polylang`
And I run `wp pll lang create Dutch nl nl_NL`
And I run `wp pll doctor translate`
Scenario: Get the default language code (slug)
......
......@@ -3,6 +3,10 @@ Feature: Manage the Polylang plugin
Background:
Given a WP install
And I run `wp plugin install polylang`
And I run `wp plugin activate polylang`
And I run `wp pll lang create Dutch nl nl_NL`
And I run `wp pll doctor translate`
Scenario: Uninstall the Polylang plugin
......
......@@ -3,6 +3,10 @@ Feature: Inspect and manage post type translation status
Background:
Given a WP install
And I run `wp plugin install polylang`
And I run `wp plugin activate polylang`
And I run `wp pll lang create Dutch nl nl_NL`
And I run `wp pll doctor translate`
Scenario: List post types with their translation status
......
......@@ -3,6 +3,10 @@ Feature: Manage posts and their translations
Background:
Given a WP install
And I run `wp plugin install polylang`
And I run `wp plugin activate polylang`
And I run `wp pll lang create Dutch nl nl_NL`
And I run `wp pll doctor translate`
Scenario: Create posts and their translations
......
......@@ -3,6 +3,10 @@ Feature: Manage Polylang taxonomies
Background:
Given a WP install
And I run `wp plugin install polylang`
And I run `wp plugin activate polylang`
And I run `wp pll lang create Dutch nl nl_NL`
And I run `wp pll doctor translate`
Scenario: Manage Polylang taxonomies
......
......@@ -3,6 +3,10 @@ Feature: Manage WordPress taxonomy terms and their translations.
Background:
Given a WP install
And I run `wp plugin install polylang`
And I run `wp plugin activate polylang`
And I run `wp pll lang create Dutch nl nl_NL`
And I run `wp pll doctor translate`
Scenario: Delete a term and its translations
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment