Skip to content

Commit 88dfd8b

Browse files
committed
Fix table prefix tests
1 parent 943f796 commit 88dfd8b

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

features/config-create.feature

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,20 +123,23 @@ Feature: Create a wp-config file
123123
Given an empty directory
124124
And WP files
125125
126-
When I run `wp config create --skip-check --dbname=somedb --dbuser=someuser --dbpass=sompassword --dbprefix=""`
127-
And STDERR should be:
126+
When I try `wp config create --skip-check --dbname=somedb --dbuser=someuser --dbpass=sompassword --dbprefix=""`
127+
Then the return code should be 1
128+
And STDERR should contain:
128129
"""
129130
Error: --dbprefix cannot be empty
130131
"""
131132
132-
When I run `wp config create --skip-check --dbname=somedb --dbuser=someuser --dbpass=sompassword --dbprefix=" "`
133-
And STDERR should be:
133+
When I try `wp config create --skip-check --dbname=somedb --dbuser=someuser --dbpass=sompassword --dbprefix=" "`
134+
Then the return code should be 1
135+
And STDERR should contain:
134136
"""
135137
Error: --dbprefix can only contain numbers, letters, and underscores.
136138
"""
137139
138-
When I run `wp config create --skip-check --dbname=somedb --dbuser=someuser --dbpass=sompassword --dbprefix="wp-"`
139-
And STDERR should be:
140+
When I try `wp config create --skip-check --dbname=somedb --dbuser=someuser --dbpass=sompassword --dbprefix="wp-"`
141+
Then the return code should be 1
142+
And STDERR should contain:
140143
"""
141144
Error: --dbprefix can only contain numbers, letters, and underscores.
142145
"""

0 commit comments

Comments
 (0)