You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: features/search-replace.feature
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -657,7 +657,7 @@ Feature: Do global search/replace
657
657
When I run `wp post create --post_title='Title_baz__baz_' --post_content='Content_baz_12345678901234567890_baz_12345678901234567890' --porcelain`
658
658
Then save STDOUT as {POST_ID}
659
659
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`
661
661
Then STDOUT should contain:
662
662
"""
663
663
Success: 2 replacements to be made.
@@ -681,7 +681,7 @@ Feature: Do global search/replace
681
681
"""
682
682
And STDERR should be empty
683
683
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`
685
685
Then STDOUT should contain:
686
686
"""
687
687
Success: 2 replacements to be made.
@@ -705,7 +705,7 @@ Feature: Do global search/replace
705
705
And STDERR should be empty
706
706
707
707
# 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`
709
709
Then STDOUT should contain:
710
710
"""
711
711
Success: Made 2 replacements.
@@ -719,7 +719,7 @@ Feature: Do global search/replace
719
719
And STDERR should be empty
720
720
721
721
# 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`
723
723
Then STDOUT should contain:
724
724
"""
725
725
Success: Made 2 replacements.
@@ -810,7 +810,7 @@ Feature: Do global search/replace
810
810
When I run `wp post create --post_title='Title_baz__boz_' --post_content='Content_baz_1234567890_bez_1234567890_biz_1234567890_boz_1234567890_buz_' --porcelain`
811
811
Then save STDOUT as {POST_ID}
812
812
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`
814
814
Then STDOUT should contain:
815
815
"""
816
816
Success: 2 replacements to be made.
@@ -834,7 +834,7 @@ Feature: Do global search/replace
834
834
"""
835
835
And STDERR should be empty
836
836
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`
0 commit comments