Skip to content

Commit 11afbb3

Browse files
committed
Update tests
1 parent 99c7380 commit 11afbb3

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

features/plugin-auto-updates-disable.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Feature: Disable auto-updates for WordPress plugins
22

33
Background:
44
Given a WP install
5-
And I run `wp plugin install duplicate-post`
5+
And I run `wp plugin install duplicate-post --ignore-requirements`
66
And I run `wp plugin auto-updates enable --all`
77

88
@require-wp-5.5

features/plugin-auto-updates-status.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Feature: Show the status of auto-updates for WordPress plugins
22

33
Background:
44
Given a WP install
5-
And I run `wp plugin install duplicate-post`
5+
And I run `wp plugin install duplicate-post --ignore-requirements`
66

77
@require-wp-5.5
88
Scenario: Show an error if required params are missing

features/plugin-install.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ Feature: Install WordPress plugins
171171
When I run `rm wp-content/plugins/akismet/akismet.php`
172172
Then the return code should be 0
173173

174-
When I try `wp plugin install akismet`
174+
When I try `wp plugin install akismet --ignore-requirements`
175175
Then STDERR should contain:
176176
"""
177177
Warning: Destination folder already exists. "{WORKING_DIR}/wp-content/plugins/akismet/"

features/plugin.feature

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ Feature: Manage WordPress plugins
329329
When I run `wp plugin activate akismet hello`
330330
Then STDOUT should not be empty
331331

332-
When I run `wp plugin install wordpress-importer`
332+
When I run `wp plugin install wordpress-importer --ignore-requirements`
333333
Then STDOUT should not be empty
334334

335335
When I run `wp plugin activate network-only`
@@ -373,6 +373,8 @@ Feature: Manage WordPress plugins
373373
| name | status | update |
374374
| wordpress-importer | inactive | none |
375375

376+
# WordPress Importer requires WP 5.2.
377+
@require-wp-5.2
376378
Scenario: Install a plugin when directory doesn't yet exist
377379
Given a WP install
378380

@@ -448,6 +450,8 @@ Feature: Manage WordPress plugins
448450
must-use
449451
"""
450452

453+
# WordPress Importer requires WP 5.2.
454+
@require-wp-5.2
451455
Scenario: Deactivate and uninstall a plugin, part one
452456
Given a WP install
453457
And these installed and active plugins:
@@ -472,6 +476,8 @@ Feature: Manage WordPress plugins
472476
And STDOUT should be empty
473477
And the return code should be 1
474478

479+
# WordPress Importer requires WP 5.2.
480+
@require-wp-5.2
475481
Scenario: Deactivate and uninstall a plugin, part two
476482
Given a WP install
477483
And these installed and active plugins:

0 commit comments

Comments
 (0)