Skip to content

Commit 0b24d51

Browse files
committed
Test: Add teset scenario for password with double backslash
1 parent 900416b commit 0b24d51

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

features/config-create.feature

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,12 @@ Feature: Create a wp-config file
216216
define( 'DB_HOST', 'localhost:{SOCKET}' );
217217
"""
218218
219+
When I run `wp config create --skip-check --dbname=somedb --dbuser=someuser --dbpass='my\\password'`
220+
Then the wp-config.php file should contain:
221+
"""
222+
define( 'DB_PASSWORD', 'my\\\\password' )
223+
"""
224+
219225
@require-php-7.0
220226
Scenario: Configure with salts generated
221227
Given an empty directory

0 commit comments

Comments
 (0)