File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,12 @@ Feature: Search / replace with file export
64
64
When I run `wp search-replace example.com example.net --export=wordpress.sql`
65
65
Then STDOUT should contain:
66
66
"""
67
- Success: Made 110 replacements and exported to wordpress.sql
67
+ Success: Made
68
+ """
69
+ # Skip exact number as it changes in trunk due to https://core.trac.wordpress.org/changeset/42981
70
+ And STDOUT should contain:
71
+ """
72
+ replacements and exported to wordpress.sql
68
73
"""
69
74
And STDOUT should be a table containing rows:
70
75
| Table | Column | Replacements | Type |
Original file line number Diff line number Diff line change @@ -32,9 +32,9 @@ Feature: Do global search/replace
32
32
And I run `wp site create --slug="foo" --title="foo" --email="foo@example.com" `
33
33
And I run `wp search-replace foo bar --network`
34
34
Then STDOUT should be a table containing rows:
35
- | Table | Column | Replacements | Type |
36
- | wp_2_posts | guid | 2 | SQL |
37
- | wp_blogs | path | 1 | SQL |
35
+ | Table | Column | Replacements | Type |
36
+ | wp_2_options | option_value | 4 | PHP |
37
+ | wp_blogs | path | 1 | SQL |
38
38
39
39
Scenario : Don't run on unregistered tables by default
40
40
Given a WP install
@@ -277,6 +277,8 @@ Feature: Do global search/replace
277
277
| wp_multicol | name | 1 | SQL |
278
278
| wp_multicol | value | 1 | SQL |
279
279
280
+ # Skip on 5.0 for now due to difficulties introduced by https://core.trac.wordpress.org/changeset/42981
281
+ @less-than-wp-5.0
280
282
Scenario Outline : Large guid search/replace where replacement contains search (or not)
281
283
Given a WP install
282
284
And I run `wp option get siteurl`
You can’t perform that action at this time.
0 commit comments