Skip to content

Commit 0b40497

Browse files
committed
Fix tests
1 parent 92c9abe commit 0b40497

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,24 @@
11
Feature: Generate cache
22

3-
Scenario: Manage wp-super-cache via cli
3+
Scenario: Manage wp-super-cache via CLI
44
Given a WP install
55

66
When I run `wp plugin install wp-super-cache`
77
Then STDOUT should contain:
8-
"""
9-
Downloading install
10-
"""
11-
And STDOUT should contain:
128
"""
139
Plugin installed successfully.
1410
"""
1511
And the wp-content/plugins/wp-super-cache directory should exist
1612

17-
When I run `wp package install wojsmol/wp-super-cache-cli:tov2`
18-
Then STDOUT should contain:
13+
When I try `wp super-cache enable`
14+
Then STDERR should contain:
1915
"""
20-
Success: Package installed.
16+
Error: WP Super Cache needs to be enabled to use its WP-CLI commands.
2117
"""
2218

23-
When I run `wp super-cache enable`
24-
Then STDOUT should contain:
19+
When I run `wp plugin activate wp-super-cache`
20+
And I run `wp super-cache enable`
21+
Then STDOUT should contain:
2522
"""
2623
Success: The WP Super Cache is enabled.
2724
"""

0 commit comments

Comments
 (0)