Skip to content

Commit a674b40

Browse files
committed
Fix some tests on WP 4.9
1 parent 33afe4f commit a674b40

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

features/plugin-update.feature

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ Feature: Update WordPress plugins
9595
0.5.2
9696
"""
9797

98-
@require-wp-4.0
98+
# Akismet currently requires WordPress 5.8
99+
@require-wp-5.8
99100
Scenario: Update a plugin to its latest minor release
100101
Given a WP install
101102
And I run `wp plugin install --force akismet --version=2.5.4`
@@ -196,7 +197,8 @@ Feature: Update WordPress plugins
196197
Error: Can't find the requested plugin's version 2.5.4 in the WordPress.org plugin repository (HTTP code 404).
197198
"""
198199

199-
@require-wp-4.7
200+
# Akismet currently requires WordPress 5.8
201+
@require-wp-5.8
200202
Scenario: Plugin updates that error should not report a success
201203
Given a WP install
202204
And I run `wp plugin install --force akismet --version=4.0`
@@ -223,6 +225,8 @@ Feature: Update WordPress plugins
223225
Success:
224226
"""
225227

228+
# Akismet currently requires WordPress 5.8, so there's a warning because of it.
229+
@require-wp-5.8
226230
Scenario: Excluding a missing plugin should not throw an error
227231
Given a WP install
228232
And I run `wp plugin update --all --exclude=missing-plugin`

features/plugin.feature

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,8 @@ Feature: Manage WordPress plugins
579579
"""
580580
And the return code should be 0
581581

582-
@require-wp-4.7
582+
# Akismet currently requires WordPress 5.8, so there's a warning because of it.
583+
@require-wp-5.8
583584
Scenario: Plugin hidden by "all_plugins" filter
584585
Given a WP install
585586
And these installed and active plugins:

0 commit comments

Comments
 (0)