File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -702,18 +702,22 @@ Feature: Search through the database
702
702
Then STDOUT should be empty
703
703
704
704
When I try `wp db search 'unfindable' --regex --regex-flags='abcd' `
705
- Then STDERR should be:
705
+ Then STDERR should contain:
706
+ """
707
+ unfindable
706
708
"""
707
- Error: The regex '/unfindable/abcd' fails.
709
+ And STDERR should contain:
708
710
"""
709
- Then the return code should be 1
711
+ abcd
712
+ """
713
+ And the return code should be 1
710
714
711
715
When I try `wp db search 'unfindable' --regex --regex-delimiter='1' `
712
716
Then STDERR should be:
713
717
"""
714
718
Error: The regex '1unfindable1' fails.
715
719
"""
716
- Then the return code should be 1
720
+ And the return code should be 1
717
721
718
722
When I run `wp db search '[0-9é]+?https:' --regex --regex-flags=u --before_context=0 --after_context=0`
719
723
Then STDOUT should contain:
@@ -804,13 +808,8 @@ Feature: Search through the database
804
808
st.com
805
809
"""
806
810
807
- When I try `wp db search 'https://' --regex`
808
- Then STDERR should contain:
809
- """
810
- Error: The regex '/https:///' fails.
811
- """
812
- And STDOUT should be empty
813
- And the return code should be 1
811
+ When I run `wp db search 'https://' --regex`
812
+ Then the return code should be 0
814
813
815
814
@require-wp-4.7
816
815
Scenario : Search with output options
You can’t perform that action at this time.
0 commit comments