File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 """
You can’t perform that action at this time.
0 commit comments