@@ -85,17 +85,17 @@ Feature: Do global search/replace
85
85
Scenario : Run on all tables matching string with wildcard
86
86
Given a WP install
87
87
88
- When I run `wp option set bar foo `
88
+ When I run `wp option set bar fooz `
89
89
And I run `wp option get bar`
90
90
Then STDOUT should be:
91
91
"""
92
- foo
92
+ fooz
93
93
"""
94
94
95
95
When I run `wp post create --post_title=bar --porcelain`
96
96
Then save STDOUT as {POST_ID}
97
97
98
- When I run `wp post meta add {POST_ID} foo bar`
98
+ When I run `wp post meta add {POST_ID} fooz bar`
99
99
Then STDOUT should not be empty
100
100
101
101
When I run `wp search-replace bar burrito wp_post\?`
@@ -113,7 +113,7 @@ Feature: Do global search/replace
113
113
burrito
114
114
"""
115
115
116
- When I run `wp post meta get {POST_ID} foo `
116
+ When I run `wp post meta get {POST_ID} fooz `
117
117
Then STDOUT should be:
118
118
"""
119
119
bar
@@ -122,17 +122,17 @@ Feature: Do global search/replace
122
122
When I run `wp option get bar`
123
123
Then STDOUT should be:
124
124
"""
125
- foo
125
+ fooz
126
126
"""
127
127
128
- When I try `wp search-replace foo burrito wp_opt\*on`
128
+ When I try `wp search-replace fooz burrito wp_opt\*on`
129
129
Then STDERR should be:
130
130
"""
131
131
Error: Couldn't find any tables matching: wp_opt*on
132
132
"""
133
133
And the return code should be 1
134
134
135
- When I run `wp search-replace foo burrito wp_opt\* wp_postme\*`
135
+ When I run `wp search-replace fooz burrito wp_opt\* wp_postme\*`
136
136
Then STDOUT should be a table containing rows:
137
137
| Table | Column | Replacements | Type |
138
138
| wp_options | option_value | 1 | PHP |
0 commit comments