Skip to content
Merged
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
Add strict comparisons for color tests
  • Loading branch information
schlessera committed Jul 26, 2021
commit 07ce3ad9688971de92007cf50df4716ea65e785b
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"wp-cli/db-command": "^1.3 || ^2",
"wp-cli/entity-command": "^1.3 || ^2",
"wp-cli/extension-command": "^1.2 || ^2",
"wp-cli/wp-cli-tests": "^3.0.11"
"wp-cli/wp-cli-tests": "^3.0.18"
},
"config": {
"process-timeout": 7200,
Expand Down
12 changes: 6 additions & 6 deletions features/search-replace.feature
Original file line number Diff line number Diff line change
Expand Up @@ -958,23 +958,23 @@ Feature: Do global search/replace
And STDERR should be empty

When I run `SHELL_PIPE=0 wp search-replace WordPress WP --dry-run --log`
Then STDOUT should contain:
Then STDOUT should strictly contain:
"""
wp_options.option_value:
"""
And STDOUT should contain:
And STDOUT should strictly contain:
"""
< Just another WordPress site
> Just another WP site
"""
And STDERR should be empty

When I run `SHELL_PIPE=0 WP_CLI_SEARCH_REPLACE_LOG_COLORS='%b,%r,%g' wp search-replace WordPress WP --dry-run --log`
Then STDOUT should contain:
Then STDOUT should strictly contain:
"""
wp_options.option_value:
"""
And STDOUT should contain:
And STDOUT should strictly contain:
"""
< Just another WordPress site
> Just another WP site
Expand All @@ -986,11 +986,11 @@ Feature: Do global search/replace
"""
wp_options.option_value
"""
And the replace.log file should contain:
And the replace.log file should strictly contain:
"""
wp_options.option_value:
"""
And the replace.log file should contain:
And the replace.log file should strictly contain:
"""
< Just another WordPress site
> Just another WP site
Expand Down