Skip to content

Commit 7846276

Browse files
committed
Add tests for built-in special variables
1 parent 07635dd commit 7846276

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

features/steps.feature

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,13 @@ Feature: Make sure "Given", "When", "Then" steps work as expected
5757

5858
When I run `echo {v}`
5959
Then STDOUT should match /^\{v}$/
60+
61+
Scenario: Special variables
62+
63+
When I run `echo {INVOKE_WP_CLI_WITH_PHP_ARGS-} cli info`
64+
And STDOUT should match /wp cli info/
65+
And STDERR should be empty
66+
67+
When I run `echo {WP_VERSION-latest}`
68+
Then STDOUT should match /\d\.\d/
69+
And STDERR should be empty

0 commit comments

Comments
 (0)