Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failing PHP 5.6 tests by requiring WP 5.2 #342

Merged
merged 1 commit into from
Nov 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion features/plugin-update.feature
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Feature: Update WordPress plugins

@require-wp-5.2
Scenario: Updating plugin with invalid version shouldn't remove the old version
Given a WP install

Expand Down Expand Up @@ -45,6 +46,7 @@ Feature: Update WordPress plugins
"""
And the return code should be 1

@require-wp-5.2
Scenario: Exclude plugin updates from bulk updates.
Given a WP install

Expand Down Expand Up @@ -76,6 +78,7 @@ Feature: Update WordPress plugins
Update available
"""

@require-wp-5.2
Scenario: Update a plugin to its latest patch release
Given a WP install
And I run `wp plugin install --force wordpress-importer --version=0.5`
Expand Down Expand Up @@ -109,6 +112,7 @@ Feature: Update WordPress plugins
2.6.1
"""

@require-wp-5.2
Scenario: Not giving a slug on update should throw an error unless --all given
Given a WP install
And I run `wp plugin path`
Expand Down Expand Up @@ -229,7 +233,7 @@ Feature: Update WordPress plugins
"""
And the return code should be 0


@require-wp-5.2
Scenario: Updating all plugins with some of them having an invalid version shouldn't report an error
Given a WP install

Expand Down
1 change: 1 addition & 0 deletions features/plugin.feature
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ Feature: Manage WordPress plugins
| akismet | active | akismet/akismet.php |
| wordpress-importer | inactive | wordpress-importer/wordpress-importer.php |

@require-wp-5.2
Scenario: Flag `--skip-update-check` skips update check when running `wp plugin list`
Given a WP install

Expand Down