File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ Feature: Perform database operations
4
4
Given an empty directory
5
5
And WP files
6
6
And wp-config.php
7
+ And a session_no file:
8
+ """
9
+ n
10
+ """
7
11
8
12
When I try `wp option get home`
9
13
Then STDOUT should be empty
@@ -21,6 +25,21 @@ Feature: Perform database operations
21
25
When I try the previous command again
22
26
Then the return code should be 1
23
27
28
+ When I run `wp db drop --yes`
29
+ Then STDOUT should be:
30
+ """
31
+ Success: Database dropped.
32
+ """
33
+
34
+ When I try the previous command again
35
+ Then the return code should be 1
36
+
37
+ When I run `wp db drop < session_no`
38
+ Then STDOUT should be:
39
+ """
40
+ Are you sure you want to drop the 'wp_cli_test' database? [y/n]
41
+ """
42
+
24
43
Scenario: DB Operations
25
44
Given a WP install
26
45
@@ -137,7 +156,7 @@ Feature: Perform database operations
137
156
Then STDOUT should not be empty
138
157
139
158
When I run `wp db create`
140
- Then STDERR should be empty
159
+ Then STDOUT should not be empty
141
160
142
161
When I run `wp core install --title="WP-CLI Test" --url=example.com --admin_user=admin --admin_password=admin [email protected] `
143
162
Then STDOUT should not be empty
You can’t perform that action at this time.
0 commit comments