Skip to content

Commit d3480b8

Browse files
committed
Fix 3 test breakages run -> try.
1 parent 3256d0f commit d3480b8

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

features/db-search.feature

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,19 +244,21 @@ Feature: Search through the database
244244
When I run `wp db query "CREATE TABLE no_key ( awesome_stuff TEXT );"`
245245
And I run `wp db query "CREATE TABLE no_text ( id int(11) unsigned NOT NULL AUTO_INCREMENT, PRIMARY KEY (id) );"`
246246

247-
When I run `wp db search example.com no_key`
247+
When I try `wp db search example.com no_key`
248248
Then STDOUT should be empty
249249
And STDERR should be:
250250
"""
251251
Warning: No primary key for table 'no_key'. No row ids will be outputted.
252252
"""
253+
And the return code should be 0
253254

254-
When I run `wp db search example.com no_text`
255+
When I try `wp db search example.com no_text`
255256
Then STDOUT should be empty
256257
And STDERR should be:
257258
"""
258259
Warning: No text columns for table 'no_text' - skipped.
259260
"""
261+
And the return code should be 0
260262

261263
Scenario: Search on a multisite install
262264
Given a WP multisite install
@@ -937,11 +939,20 @@ Feature: Search through the database
937939
1:example.com
938940
"""
939941

940-
When I run `wp db search example.com --match_color=%x`
942+
When I try `wp db search example.com --match_color=%x`
941943
Then STDERR should be:
942944
"""
943945
Warning: Unrecognized percent color code '%x' for 'match_color'.
944946
"""
947+
And STDOUT should contain:
948+
"""
949+
example.com
950+
"""
951+
And STDOUT should not contain:
952+
"""
953+

954+
"""
955+
And the return code should be 0
945956

946957
Scenario: Search should cater for field/table names that use reserved words or unusual characters
947958
Given a WP install

0 commit comments

Comments
 (0)