Skip to content

Commit 84221bd

Browse files
committed
More updates to work on WordPress 4.9
Almost all of these have the same cause -- WordPress ships with Akismet but the recent versions do not work on WordPress 4.9 so commands like wp plugin list now show the updates as unavailable and with two additional table headers for requires and requires_php that explain why. So just be intentional about the fields we care about testing.
1 parent dfc3e75 commit 84221bd

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

features/plugin.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Feature: Manage WordPress plugins
6161
When I run `wp plugin status`
6262
Then STDOUT should not be empty
6363

64-
When I run `wp plugin list`
64+
When I run `wp plugin list --fields=name,status,update,version,update_version,auto_update`
6565
Then STDOUT should be a table containing rows:
6666
| name | status | update | version | update_version | auto_update |
6767
| Zombieland | active | none | 0.1.0 | | off |
@@ -586,7 +586,7 @@ Feature: Manage WordPress plugins
586586
Given a WP install
587587
And these installed and active plugins:
588588
"""
589-
akismet
589+
hello-dolly
590590
site-secrets
591591
"""
592592
And a wp-content/mu-plugins/hide-us-plugin.php file:
@@ -755,7 +755,7 @@ Feature: Manage WordPress plugins
755755
"""
756756
And I run `wp plugin activate foo`
757757

758-
When I run `wp plugin list`
758+
When I run `wp plugin list --fields=name,status,update,version,update_version,auto_update`
759759
Then STDOUT should be a table containing rows:
760760
| name | status | update | version | update_version | auto_update |
761761
| foo | active | none | | | off |
@@ -797,7 +797,7 @@ Feature: Manage WordPress plugins
797797
"""
798798
And I run `wp plugin activate foo`
799799

800-
When I run `wp plugin list`
800+
When I run `wp plugin list --fields=name,status,update,version,update_version,auto_update`
801801
Then STDOUT should be a table containing rows:
802802
| name | status | update | version | update_version | auto_update |
803803
| foo | active | none | | | off |

features/upgradables.feature

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Feature: Manage WordPress themes and plugins
66
@require-wp-4.5
77
Scenario Outline: Installing, upgrading and deleting a theme or plugin
88
Given a WP install
9+
# Akismet ships with WordPress but does not work with older versions we test
10+
And I run `wp plugin delete akismet`
911
And I run `wp <type> path`
1012
And save STDOUT as {CONTENT_DIR}
1113

0 commit comments

Comments
 (0)