Skip to content

Commit 0ec781d

Browse files
committed
Behat test improved.
1 parent 57f96b6 commit 0ec781d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

features/db.feature

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ Feature: Perform database operations
117117
Success: Tables dropped.
118118
"""
119119
120+
When I run `wp core install --title="WP-CLI Test" --url=example.com --admin_user=admin --admin_password=admin [email protected]`
121+
Then STDOUT should not be empty
122+
120123
When I try `wp db clean --yes --dbuser=no_such_user`
121124
Then the return code should not be 0
122125
And STDERR should contain:
@@ -129,6 +132,18 @@ Feature: Perform database operations
129132
Then STDOUT should be:
130133
"""
131134
custom_table
135+
wp_commentmeta
136+
wp_comments
137+
wp_links
138+
wp_options
139+
wp_postmeta
140+
wp_posts
141+
wp_term_relationships
142+
wp_term_taxonomy
143+
wp_termmeta
144+
wp_terms
145+
wp_usermeta
146+
wp_users
132147
"""
133148
And the return code should be 0
134149

0 commit comments

Comments
 (0)