Skip to content

Commit 609d95c

Browse files
committed
Restrict some search-replace tests to wp_posts to avoid wp_options clash.
1 parent caa107e commit 609d95c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

features/search-replace.feature

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ Feature: Do global search/replace
657657
When I run `wp post create --post_title='Title_baz__baz_' --post_content='Content_baz_12345678901234567890_baz_12345678901234567890' --porcelain`
658658
Then save STDOUT as {POST_ID}
659659

660-
When I run `wp search-replace '_baz_' '_' --dry-run --log --before_context=10 --after_context=10`
660+
When I run `wp search-replace '_baz_' '_' wp_posts --dry-run --log --before_context=10 --after_context=10`
661661
Then STDOUT should contain:
662662
"""
663663
Success: 2 replacements to be made.
@@ -681,7 +681,7 @@ Feature: Do global search/replace
681681
"""
682682
And STDERR should be empty
683683

684-
When I run `wp search-replace '_baz_' '' --dry-run --log=replace.log`
684+
When I run `wp search-replace '_baz_' '' wp_posts --dry-run --log=replace.log`
685685
Then STDOUT should contain:
686686
"""
687687
Success: 2 replacements to be made.
@@ -705,7 +705,7 @@ Feature: Do global search/replace
705705
And STDERR should be empty
706706

707707
# kana with diacritic and decomposed "a" + umlaut.
708-
When I run `wp search-replace '_baz_' '_バäz_' --log=- --before_context=10 --after_context=20`
708+
When I run `wp search-replace '_baz_' '_バäz_' wp_posts --log=- --before_context=10 --after_context=20`
709709
Then STDOUT should contain:
710710
"""
711711
Success: Made 2 replacements.
@@ -719,7 +719,7 @@ Feature: Do global search/replace
719719
And STDERR should be empty
720720

721721
# Testing UTF-8 context
722-
When I run `wp search-replace 'z_' 'zzzz_' --log --before_context=2 --after_context=1`
722+
When I run `wp search-replace 'z_' 'zzzz_' wp_posts --log --before_context=2 --after_context=1`
723723
Then STDOUT should contain:
724724
"""
725725
Success: Made 2 replacements.
@@ -810,7 +810,7 @@ Feature: Do global search/replace
810810
When I run `wp post create --post_title='Title_baz__boz_' --post_content='Content_baz_1234567890_bez_1234567890_biz_1234567890_boz_1234567890_buz_' --porcelain`
811811
Then save STDOUT as {POST_ID}
812812

813-
When I run `wp search-replace '_b[aeiou]z_' '_bz_' --regex --dry-run --log --before_context=11 --after_context=11`
813+
When I run `wp search-replace '_b[aeiou]z_' '_bz_' wp_posts --regex --dry-run --log --before_context=11 --after_context=11`
814814
Then STDOUT should contain:
815815
"""
816816
Success: 2 replacements to be made.
@@ -834,7 +834,7 @@ Feature: Do global search/replace
834834
"""
835835
And STDERR should be empty
836836

837-
When I run `wp search-replace '_b([aeiou])z_' '_$1b\\1z_\0' --regex --log --before_context=11 --after_context=11`
837+
When I run `wp search-replace '_b([aeiou])z_' '_$1b\\1z_\0' wp_posts --regex --log --before_context=11 --after_context=11`
838838
Then STDOUT should contain:
839839
"""
840840
Success: Made 2 replacements.

0 commit comments

Comments
 (0)