Skip to content

Commit 6415fe7

Browse files
committed
Test: Move into dedicated scenario since using --false key failed
1 parent b35b5cf commit 6415fe7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

features/config-create.feature

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,11 +259,21 @@ Feature: Create a wp-config file
259259
p@(ss){w0r?d><}"!With"DoubleQuotes
260260
"""
261261
262+
Scenario: Passwords with backslash should properly escaped
263+
Given an empty directory
264+
And WP files
265+
262266
When I run `wp config create --skip-check --dbname=somedb --dbuser=someuser --dbpass='my\\password'` --force
263267
Then the wp-config.php file should contain:
264268
"""
265269
define( 'DB_PASSWORD', 'my\\\\password' )
266270
"""
271+
272+
When I run `wp config get DB_PASSWORD`
273+
Then STDOUT should be:
274+
"""
275+
my\\password
276+
"""
267277
268278
@require-mysql @require-mysql-5.7
269279
Scenario: Configure with required SSL connection

0 commit comments

Comments
 (0)