From 46877e35e13ff8684d6ee00b002c3babe76c12fd Mon Sep 17 00:00:00 2001 From: "Peter J. Herrel" Date: Sat, 10 Jun 2017 20:07:45 +0200 Subject: [PATCH] remove behat featurecontext customization --- features/api.feature | 4 ++++ features/bootstrap/FeatureContext.php | 5 ----- features/cache.feature | 4 ++++ features/doctor.feature | 4 ++++ features/flag.feature | 4 ++++ features/lang.feature | 4 ++++ features/menu.feature | 4 ++++ features/option.feature | 4 ++++ features/plugin.feature | 4 ++++ features/post-type.feature | 4 ++++ features/post.feature | 4 ++++ features/taxonomy.feature | 4 ++++ features/term.feature | 4 ++++ 13 files changed, 48 insertions(+), 5 deletions(-) diff --git a/features/api.feature b/features/api.feature index 755a561..a54a277 100644 --- a/features/api.feature +++ b/features/api.feature @@ -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 diff --git a/features/bootstrap/FeatureContext.php b/features/bootstrap/FeatureContext.php index 1b379e2..e5b8176 100644 --- a/features/bootstrap/FeatureContext.php +++ b/features/bootstrap/FeatureContext.php @@ -422,10 +422,5 @@ public function install_wp( $subdir = '' ) { ); $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(); } } diff --git a/features/cache.feature b/features/cache.feature index 867540d..cc06efb 100644 --- a/features/cache.feature +++ b/features/cache.feature @@ -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 diff --git a/features/doctor.feature b/features/doctor.feature index 660ac3e..8b72d41 100644 --- a/features/doctor.feature +++ b/features/doctor.feature @@ -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 diff --git a/features/flag.feature b/features/flag.feature index 58d8b45..e863ca1 100644 --- a/features/flag.feature +++ b/features/flag.feature @@ -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 diff --git a/features/lang.feature b/features/lang.feature index b9f944b..a55d6e7 100644 --- a/features/lang.feature +++ b/features/lang.feature @@ -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 diff --git a/features/menu.feature b/features/menu.feature index f7b5221..ffe49d8 100644 --- a/features/menu.feature +++ b/features/menu.feature @@ -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` diff --git a/features/option.feature b/features/option.feature index 429894a..ba83ec2 100644 --- a/features/option.feature +++ b/features/option.feature @@ -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) diff --git a/features/plugin.feature b/features/plugin.feature index 9d159b0..f7b0c0a 100644 --- a/features/plugin.feature +++ b/features/plugin.feature @@ -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 diff --git a/features/post-type.feature b/features/post-type.feature index d6a9d0a..40ab81a 100644 --- a/features/post-type.feature +++ b/features/post-type.feature @@ -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 diff --git a/features/post.feature b/features/post.feature index b81f0f9..961917a 100644 --- a/features/post.feature +++ b/features/post.feature @@ -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 diff --git a/features/taxonomy.feature b/features/taxonomy.feature index 656d8d8..d29adfa 100644 --- a/features/taxonomy.feature +++ b/features/taxonomy.feature @@ -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 diff --git a/features/term.feature b/features/term.feature index b554664..51caa54 100644 --- a/features/term.feature +++ b/features/term.feature @@ -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