File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -119,6 +119,22 @@ Feature: Create a wp-config file
119119 define( 'AUTH_SALT',
120120 """
121121
122+ Scenario: Configure with invalid table prefix
123+ Given an empty directory
124+ And WP files
125+
126+ 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
129+
130+ 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+
134+ 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
137+
122138 @require-php-7.0
123139 Scenario: Configure with salts generated
124140 Given an empty directory
You can’t perform that action at this time.
0 commit comments