Skip to content

Commit 176dc75

Browse files
committed
Add feature test for correct error message
1 parent a9994f8 commit 176dc75

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

features/db-search.feature

+8
Original file line numberDiff line numberDiff line change
@@ -1102,5 +1102,13 @@ Feature: Search through the database
11021102
And STDOUT should be empty
11031103
And the return code should be 1
11041104

1105+
When I try `wp db search example.com --format=count`
1106+
Then STDERR should be:
1107+
"""
1108+
Error: The "count" format can only be used for a single table.
1109+
"""
1110+
And STDOUT should be empty
1111+
And the return code should be 1
1112+
11051113
When I run `wp db search mail.example.com wp_options --format=ids`
11061114
Then STDOUT should not be empty

0 commit comments

Comments
 (0)