1
1
Feature : Search / replace with file export
2
2
3
+ @require-mysql
3
4
Scenario : Search / replace export to STDOUT
4
5
Given a WP install
5
6
And I run `echo ' ' `
@@ -76,6 +77,7 @@ Feature: Search / replace with file export
76
77
https://example.net
77
78
"""
78
79
80
+ @require-mysql
79
81
Scenario : Search / replace export to file
80
82
Given a WP install
81
83
And I run `wp post generate --count=100`
@@ -129,6 +131,7 @@ Feature: Search / replace with file export
129
131
101
130
132
"""
131
133
134
+ @require-mysql
132
135
Scenario : Search / replace export to file with verbosity
133
136
Given a WP install
134
137
@@ -151,6 +154,7 @@ Feature: Search / replace with file export
151
154
Error: You cannot supply --dry-run and --export at the same time.
152
155
"""
153
156
157
+ @require-mysql
154
158
Scenario : Search / replace shouldn't affect primary key
155
159
Given a WP install
156
160
And I run `wp post create --post_title=foo --porcelain`
@@ -191,6 +195,7 @@ Feature: Search / replace with file export
191
195
Error: Unable to open export file "foo/bar.sql" for writing:
192
196
"""
193
197
198
+ @require-mysql
194
199
Scenario : Search / replace specific table
195
200
Given a WP install
196
201
@@ -225,6 +230,7 @@ Feature: Search / replace with file export
225
230
foo
226
231
"""
227
232
233
+ @require-mysql
228
234
Scenario : Search / replace export should cater for field/table names that use reserved words or unusual characters
229
235
Given a WP install
230
236
# Unlike search-replace.features version, don't use `back``tick` column name as WP_CLI\Iterators\Table::build_fields() can't handle it.
@@ -268,6 +274,7 @@ Feature: Search / replace with file export
268
274
"""
269
275
And STDERR should be empty
270
276
277
+ @require-mysql
271
278
Scenario : Suppress report or only report changes on export to file
272
279
Given a WP install
273
280
@@ -365,6 +372,7 @@ Feature: Search / replace with file export
365
372
"""
366
373
And STDERR should be empty
367
374
375
+ @require-mysql
368
376
Scenario : Search / replace should remove placeholder escape on export
369
377
Given a WP install
370
378
And I run `wp post create --post_title=test-remove-placeholder-escape% --porcelain`
@@ -380,6 +388,7 @@ Feature: Search / replace with file export
380
388
'test-remove-placeholder-escape{'
381
389
"""
382
390
391
+ @require-mysql
383
392
Scenario : NULLs exported as NULL and not null string
384
393
Given a WP install
385
394
And I run `wp db query "INSERT INTO wp_postmeta VALUES (9999, 9999, NULL, 'foo')" `
0 commit comments