Skip to content

Commit 943f796

Browse files
committed
Change table prefix tests
1 parent cbc6d41 commit 943f796

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

features/config-create.feature

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)