Skip to content

Commit 6bc362b

Browse files
committed
More fixes
1 parent 4918d19 commit 6bc362b

File tree

5 files changed

+18
-7
lines changed

5 files changed

+18
-7
lines changed

features/plugin-activate.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Feature: Activate WordPress plugins
5555
"""
5656
Plugin 'akismet' activated.
5757
"""
58-
And STDOUT should not contain:
58+
And STDOUT should contain:
5959
"""
6060
Plugin 'sample-plugin' activated.
6161
"""

features/plugin-auto-updates-disable.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Feature: Disable auto-updates for WordPress plugins
5454
"""
5555
And STDERR should contain:
5656
"""
57-
Error: Only disabled 2 of 3 plugin auto-updates.
57+
Error: Only disabled 3 of 4 plugin auto-updates.
5858
"""
5959

6060
@require-wp-5.5

features/plugin-auto-updates-enable.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Feature: Enable auto-updates for WordPress plugins
5353
"""
5454
And STDERR should contain:
5555
"""
56-
Error: Only enabled 2 of 3 plugin auto-updates.
56+
Error: Only enabled 3 of 4 plugin auto-updates.
5757
"""
5858

5959
@require-wp-5.5

features/plugin-auto-updates-status.feature

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,12 @@ Feature: Show the status of auto-updates for WordPress plugins
8686
Given I run `wp plugin auto-updates enable sample-plugin`
8787

8888
When I run `wp plugin auto-updates status --all --disabled-only --field=name`
89-
Then STDOUT should be:
89+
Then STDOUT should contain:
9090
"""
9191
akismet
92+
"""
93+
And STDOUT should contain:
94+
"""
9295
duplicate-post
9396
"""
9497

@@ -101,9 +104,17 @@ Feature: Show the status of auto-updates for WordPress plugins
101104
@require-wp-5.5
102105
Scenario: Formatting options work
103106
When I run `wp plugin auto-updates status --all --format=json`
104-
Then STDOUT should be:
107+
Then STDOUT should contain:
108+
"""
109+
{"name":"akismet","status":"disabled"}
110+
"""
111+
And STDOUT should contain:
112+
"""
113+
{"name":"sample-plugin","status":"disabled"}
114+
"""
115+
And STDOUT should contain:
105116
"""
106-
[{"name":"akismet","status":"disabled"},{"name":"sample-plugin","status":"disabled"},{"name":"duplicate-post","status":"disabled"}]
117+
{"name":"duplicate-post","status":"disabled"}
107118
"""
108119

109120
When I run `wp plugin auto-updates status --all --format=csv`

features/plugin-uninstall.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Feature: Uninstall a WordPress plugin
133133
When I run `wp plugin uninstall --deactivate --all`
134134
Then STDOUT should contain:
135135
"""
136-
Success: Uninstalled 2 of 2 plugins.
136+
Success: Uninstalled 3 of 3 plugins.
137137
"""
138138
And STDERR should be empty
139139

0 commit comments

Comments
 (0)