Skip to content

Commit a98efb2

Browse files
committed
Add strict comparisons for color tests
1 parent 4d5445e commit a98efb2

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"wp-cli/db-command": "^1.3 || ^2",
1919
"wp-cli/entity-command": "^1.3 || ^2",
2020
"wp-cli/extension-command": "^1.2 || ^2",
21-
"wp-cli/wp-cli-tests": "^3.0.11"
21+
"wp-cli/wp-cli-tests": "^3.0.18"
2222
},
2323
"config": {
2424
"process-timeout": 7200,

features/search-replace.feature

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -958,23 +958,23 @@ Feature: Do global search/replace
958958
And STDERR should be empty
959959

960960
When I run `SHELL_PIPE=0 wp search-replace WordPress WP --dry-run --log`
961-
Then STDOUT should contain:
961+
Then STDOUT should strictly contain:
962962
"""
963963
wp_options.option_value:
964964
"""
965-
And STDOUT should contain:
965+
And STDOUT should strictly contain:
966966
"""
967967
< Just another WordPress site
968968
> Just another WP site
969969
"""
970970
And STDERR should be empty
971971

972972
When I run `SHELL_PIPE=0 WP_CLI_SEARCH_REPLACE_LOG_COLORS='%b,%r,%g' wp search-replace WordPress WP --dry-run --log`
973-
Then STDOUT should contain:
973+
Then STDOUT should strictly contain:
974974
"""
975975
wp_options.option_value:
976976
"""
977-
And STDOUT should contain:
977+
And STDOUT should strictly contain:
978978
"""
979979
< Just another WordPress site
980980
> Just another WP site
@@ -986,11 +986,11 @@ Feature: Do global search/replace
986986
"""
987987
wp_options.option_value
988988
"""
989-
And the replace.log file should contain:
989+
And the replace.log file should strictly contain:
990990
"""
991991
wp_options.option_value:
992992
"""
993-
And the replace.log file should contain:
993+
And the replace.log file should strictly contain:
994994
"""
995995
< Just another WordPress site
996996
> Just another WP site

0 commit comments

Comments
 (0)