Skip to content

Commit 91fd0ec

Browse files
schlesseraclaude
andcommitted
Expect the configured test database name
Some scenarios expected the test database to be called wp_cli_test, which only holds with the default configuration, and not for parallel test workers, which each use their own database. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 4d50cec commit 91fd0ec

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

‎features/config-backcompat.feature‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Feature: Backwards compatibility
66
When I run `wp config get --constant=DB_NAME`
77
Then STDOUT should be:
88
"""
9-
wp_cli_test
9+
{DB_NAME}
1010
"""
1111

1212
Scenario: wp config get --global=<global> --> wp config get <name> --type=variable

‎features/config-get-field.feature‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Feature: Get the value of a constant or variable defined in wp-config.php and wp
66
When I run `wp config get DB_NAME --type=constant`
77
Then STDOUT should be:
88
"""
9-
wp_cli_test
9+
{DB_NAME}
1010
"""
1111

1212
Scenario: Get the value of an existing wp-config.php constant without explicit type
@@ -15,7 +15,7 @@ Feature: Get the value of a constant or variable defined in wp-config.php and wp
1515
When I run `wp config get DB_NAME`
1616
Then STDOUT should be:
1717
"""
18-
wp_cli_test
18+
{DB_NAME}
1919
"""
2020

2121
Scenario: Get the value of an existing wp-config.php variable
@@ -172,7 +172,7 @@ Feature: Get the value of a constant or variable defined in wp-config.php and wp
172172
When I run `wp config get DB_NAME --type=constant --config-file='wp-custom-config.php'`
173173
Then STDOUT should be:
174174
"""
175-
wp_cli_test
175+
{DB_NAME}
176176
"""
177177

178178
Scenario: Get the value of an entry that exists as both a variable and a constant should yield a helpful error
@@ -248,20 +248,20 @@ Feature: Get the value of a constant or variable defined in wp-config.php and wp
248248
When I run `wp config get DB_NAME`
249249
Then STDOUT should be:
250250
"""
251-
wp_cli_test
251+
{DB_NAME}
252252
"""
253253

254254
When I run `wp config get DB_NAME --format=json`
255255
Then STDOUT should be:
256256
"""
257-
"wp_cli_test"
257+
"{DB_NAME}"
258258
"""
259259

260260
When I run `wp config get DB_NAME --format=yaml`
261261
Then STDOUT should be:
262262
"""
263263
---
264-
- wp_cli_test
264+
- {DB_NAME}
265265
"""
266266

267267
@custom-config-file
@@ -278,20 +278,20 @@ Feature: Get the value of a constant or variable defined in wp-config.php and wp
278278
When I run `wp config get DB_NAME --config-file='wp-custom-config.php'`
279279
Then STDOUT should be:
280280
"""
281-
wp_cli_test
281+
{DB_NAME}
282282
"""
283283

284284
When I run `wp config get DB_NAME --format=json --config-file='wp-custom-config.php'`
285285
Then STDOUT should be:
286286
"""
287-
"wp_cli_test"
287+
"{DB_NAME}"
288288
"""
289289

290290
When I run `wp config get DB_NAME --format=yaml --config-file='wp-custom-config.php'`
291291
Then STDOUT should be:
292292
"""
293293
---
294-
- wp_cli_test
294+
- {DB_NAME}
295295
"""
296296

297297
Scenario: Get a boolean true constant from wp-config.php shows literal "true"

0 commit comments

Comments
 (0)