File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -124,16 +124,22 @@ Feature: Create a wp-config file
124124 And WP files
125125
126126 When I run `wp config create --skip-check --dbname=somedb --dbuser=someuser --dbpass=sompassword --dbprefix=""`
127- Then the return code should be 1
128- And STDERR should not be empty
127+ And STDERR should be:
128+ """
129+ Error: --dbprefix cannot be empty
130+ """
129131
130132 When I run `wp config create --skip-check --dbname=somedb --dbuser=someuser --dbpass=sompassword --dbprefix=" "`
131- Then the return code should be 1
132- And STDERR should not be empty
133+ And STDERR should be:
134+ """
135+ Error: --dbprefix can only contain numbers, letters, and underscores.
136+ """
133137
134138 When I run `wp config create --skip-check --dbname=somedb --dbuser=someuser --dbpass=sompassword --dbprefix="wp-"`
135- Then the return code should be 1
136- And STDERR should not be empty
139+ And STDERR should be:
140+ """
141+ Error: --dbprefix can only contain numbers, letters, and underscores.
142+ """
137143
138144 @require-php-7.0
139145 Scenario: Configure with salts generated
You can’t perform that action at this time.
0 commit comments