File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,7 @@ Feature: Do global search/replace
110
110
"""
111
111
Error: Couldn't find any tables matching: wp_opt*on
112
112
"""
113
+ And the return code should be 1
113
114
114
115
When I run `wp search-replace foo burrito wp_opt\* wp_postme\*`
115
116
Then STDOUT should be a table containing rows:
@@ -256,6 +257,7 @@ Feature: Do global search/replace
256
257
Warning: Replacement value 'foo' is identical to search value 'foo'. Skipping operation.
257
258
"""
258
259
And STDOUT should be empty
260
+ And the return code should be 0
259
261
260
262
Scenario : Search and replace a table that has a multi-column primary key
261
263
Given a WP install
@@ -588,6 +590,7 @@ Feature: Do global search/replace
588
590
"""
589
591
Warning: No such table 'no_such_table'.
590
592
"""
593
+ And the return code should be 0
591
594
592
595
When I run `wp db query "CREATE TABLE no_key ( awesome_stuff TEXT );" `
593
596
And I run `wp search-replace foo bar no_key`
@@ -613,6 +616,7 @@ Feature: Do global search/replace
613
616
"""
614
617
Warning: No primary keys for table 'no_key'.
615
618
"""
619
+ And the return code should be 0
616
620
617
621
Scenario : Search / replace is case sensitive
618
622
Given a WP install
You can’t perform that action at this time.
0 commit comments