Skip to content

Commit

Permalink
Merge pull request #81 from diggy/remove-behat-featurecontext-customi…
Browse files Browse the repository at this point in the history
…zation

remove behat featurecontext customization, closes #80
  • Loading branch information
diggy committed Jun 10, 2017
2 parents 4363953 + 46877e3 commit 22cc7a5
Show file tree
Hide file tree
Showing 13 changed files with 48 additions and 5 deletions.
4 changes: 4 additions & 0 deletions features/api.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 0 additions & 5 deletions features/bootstrap/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
4 changes: 4 additions & 0 deletions features/cache.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 4 additions & 0 deletions features/doctor.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 4 additions & 0 deletions features/flag.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 4 additions & 0 deletions features/lang.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions features/menu.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down
4 changes: 4 additions & 0 deletions features/option.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 4 additions & 0 deletions features/plugin.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 4 additions & 0 deletions features/post-type.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 4 additions & 0 deletions features/post.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 4 additions & 0 deletions features/taxonomy.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 4 additions & 0 deletions features/term.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 22cc7a5

Please sign in to comment.