Skip to content

Commit cb493ac

Browse files
Merge pull request #78 from wp-cli/77-fix-test-counts-after-privacy-policy-page-addition
Fix tests that are broken due to the addition of a "Privacy Policy" page
2 parents f8ca203 + 2159284 commit cb493ac

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

features/search-replace-export.feature

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,12 @@ Feature: Search / replace with file export
6464
When I run `wp search-replace example.com example.net --export=wordpress.sql`
6565
Then STDOUT should contain:
6666
"""
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
6873
"""
6974
And STDOUT should be a table containing rows:
7075
| Table | Column | Replacements | Type |

features/search-replace.feature

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ Feature: Do global search/replace
3232
And I run `wp site create --slug="foo" --title="foo" --email="foo@example.com"`
3333
And I run `wp search-replace foo bar --network`
3434
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 |
3838

3939
Scenario: Don't run on unregistered tables by default
4040
Given a WP install
@@ -277,6 +277,8 @@ Feature: Do global search/replace
277277
| wp_multicol | name | 1 | SQL |
278278
| wp_multicol | value | 1 | SQL |
279279

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
280282
Scenario Outline: Large guid search/replace where replacement contains search (or not)
281283
Given a WP install
282284
And I run `wp option get siteurl`

0 commit comments

Comments
 (0)