Skip to content

Commit 6627ad4

Browse files
committed
Use strict string comparisons when checking for custom colors
1 parent 528136f commit 6627ad4

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
"require-dev": {
1818
"wp-cli/entity-command": "^1.3 || ^2",
19-
"wp-cli/wp-cli-tests": "^3.0.11"
19+
"wp-cli/wp-cli-tests": "^3.0.17"
2020
},
2121
"config": {
2222
"process-timeout": 7200,

features/db-search.feature

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -917,42 +917,42 @@ Feature: Search through the database
917917
Given a WP install
918918

919919
When I run `SHELL_PIPE=0 wp db search example.com`
920-
Then STDOUT should contain:
920+
Then STDOUT should strictly contain:
921921
"""
922922
wp_options:option_value
923923
1:http://example.com
924924
"""
925925

926926
When I run `SHELL_PIPE=0 wp db search example.com --table_column_color=%r --id_color=%g --match_color=%b`
927-
Then STDOUT should contain:
927+
Then STDOUT should strictly contain:
928928
"""
929929
wp_options:option_value
930930
1:http://example.com
931931
"""
932932

933933
When I run `SHELL_PIPE=0 wp db search example.com --table_column_color=%r`
934-
Then STDOUT should contain:
934+
Then STDOUT should strictly contain:
935935
"""
936936
wp_options:option_value
937937
1:http://example.com
938938
"""
939939

940940
When I run `SHELL_PIPE=0 wp db search example.com --id_color=%g`
941-
Then STDOUT should contain:
941+
Then STDOUT should strictly contain:
942942
"""
943943
wp_options:option_value
944944
1:http://example.com
945945
"""
946946

947947
When I run `SHELL_PIPE=0 wp db search example.com --match_color=%b`
948-
Then STDOUT should contain:
948+
Then STDOUT should strictly contain:
949949
"""
950950
wp_options:option_value
951951
1:http://example.com
952952
"""
953953

954954
When I run `SHELL_PIPE=0 wp db search example.com --before_context=0 --after_context=0`
955-
Then STDOUT should contain:
955+
Then STDOUT should strictly contain:
956956
"""
957957
wp_options:option_value
958958
1:example.com
@@ -967,7 +967,7 @@ Feature: Search through the database
967967
"""
968968
example.com
969969
"""
970-
And STDOUT should not contain:
970+
And STDOUT should strictly not contain:
971971
"""
972972

973973
"""

0 commit comments

Comments
 (0)