Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"require-dev": {
"wp-cli/db-command": "^1.3 || ^2 || ^3",
"wp-cli/wp-cli-tests": "^5"
"wp-cli/wp-cli-tests": "dev-ci/parallel-integration#04a78ab9833119b5af984ea4d17a2153ae69547f as 5.1.99"
},
"config": {
"process-timeout": 7200,
Expand Down Expand Up @@ -66,7 +66,10 @@
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"behat": "run-behat-tests",
"behat": [
"@putenv WP_CLI_TEST_PARALLEL=4",
"run-behat-tests"
],
"behat-rerun": "rerun-behat-tests",
"lint": "run-linter-tests",
"lint-gherkin": "run-gherkin-lint-tests",
Expand Down
2 changes: 1 addition & 1 deletion features/config-backcompat.feature
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Feature: Backwards compatibility
When I run `wp config get --constant=DB_NAME`
Then STDOUT should be:
"""
wp_cli_test
{DB_NAME}
"""

Scenario: wp config get --global=<global> --> wp config get <name> --type=variable
Expand Down
18 changes: 9 additions & 9 deletions features/config-get-field.feature
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Feature: Get the value of a constant or variable defined in wp-config.php and wp
When I run `wp config get DB_NAME --type=constant`
Then STDOUT should be:
"""
wp_cli_test
{DB_NAME}
"""

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

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

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

When I run `wp config get DB_NAME --format=json`
Then STDOUT should be:
"""
"wp_cli_test"
"{DB_NAME}"
"""

When I run `wp config get DB_NAME --format=yaml`
Then STDOUT should be:
"""
---
- wp_cli_test
- {DB_NAME}
"""

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

When I run `wp config get DB_NAME --format=json --config-file='wp-custom-config.php'`
Then STDOUT should be:
"""
"wp_cli_test"
"{DB_NAME}"
"""

When I run `wp config get DB_NAME --format=yaml --config-file='wp-custom-config.php'`
Then STDOUT should be:
"""
---
- wp_cli_test
- {DB_NAME}
"""

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