We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b35b5cf commit 6415fe7Copy full SHA for 6415fe7
features/config-create.feature
@@ -259,11 +259,21 @@ Feature: Create a wp-config file
259
p@(ss){w0r?d><}"!With"DoubleQuotes
260
"""
261
262
+ Scenario: Passwords with backslash should properly escaped
263
+ Given an empty directory
264
+ And WP files
265
+
266
When I run `wp config create --skip-check --dbname=somedb --dbuser=someuser --dbpass='my\\password'` --force
267
Then the wp-config.php file should contain:
268
269
define( 'DB_PASSWORD', 'my\\\\password' )
270
271
272
+ When I run `wp config get DB_PASSWORD`
273
+ Then STDOUT should be:
274
+ """
275
+ my\\password
276
277
278
@require-mysql @require-mysql-5.7
279
Scenario: Configure with required SSL connection
0 commit comments