Skip to content

Commit

Permalink
Add feature test for correct error message
Browse files Browse the repository at this point in the history
  • Loading branch information
ernilambar committed Aug 13, 2024
1 parent a9994f8 commit 176dc75
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions features/db-search.feature
Original file line number Diff line number Diff line change
Expand Up @@ -1102,5 +1102,13 @@ Feature: Search through the database
And STDOUT should be empty
And the return code should be 1

When I try `wp db search example.com --format=count`
Then STDERR should be:
"""
Error: The "count" format can only be used for a single table.
"""
And STDOUT should be empty
And the return code should be 1

When I run `wp db search mail.example.com wp_options --format=ids`
Then STDOUT should not be empty

0 comments on commit 176dc75

Please sign in to comment.