File tree Expand file tree Collapse file tree 3 files changed +6
-16
lines changed Expand file tree Collapse file tree 3 files changed +6
-16
lines changed Original file line number Diff line number Diff line change @@ -50,13 +50,8 @@ Feature: Check the database
50
50
"""
51
51
And STDOUT should be empty
52
52
53
- # Verbose option prints to STDERR.
54
53
When I try `wp db check --dbuser=wp_cli_test --verbose`
55
54
Then the return code should be 0
56
- And STDERR should contain:
57
- """
58
- Connecting
59
- """
60
55
And STDOUT should contain:
61
56
"""
62
57
Success: Database checked.
Original file line number Diff line number Diff line change @@ -40,10 +40,9 @@ Feature: List database tables
40
40
Given a WP multisite install
41
41
42
42
When I run `wp db tables`
43
- Then STDOUT should contain:
44
- """
45
- wp_blog_versions
46
- """
43
+ # Leave out wp_blog_versions, it was never used and removed in WP 5.3+.
44
+ # See https://core.trac.wordpress.org/ticket/19755
45
+
47
46
# Leave out wp_blogmeta for old WP compat.
48
47
And STDOUT should contain:
49
48
"""
Original file line number Diff line number Diff line change @@ -49,9 +49,10 @@ Feature: Perform database operations
49
49
Then the return code should be 1
50
50
51
51
When I run `wp db drop < session_no`
52
- Then STDOUT should be:
52
+ # Check for contains only, as the string contains a trailing space.
53
+ Then STDOUT should contain:
53
54
"""
54
- Are you sure you want to drop the 'wp_cli_test' database? [y/n]
55
+ Are you sure you want to drop the 'wp_cli_test' database? [y/n]
55
56
"""
56
57
57
58
When I run `wp db reset < session_yes`
@@ -178,13 +179,8 @@ Feature: Perform database operations
178
179
"""
179
180
And STDOUT should be empty
180
181
181
- # Verbose option prints to STDERR.
182
182
When I try `wp db optimize --verbose`
183
183
Then the return code should be 0
184
- And STDERR should contain:
185
- """
186
- Connecting
187
- """
188
184
And STDOUT should not be empty
189
185
190
186
When I run `wp db repair --dbpass=password1`
You can’t perform that action at this time.
0 commit comments