Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add feature test for correct error message
  • Loading branch information
ernilambar committed Aug 13, 2024
commit 176dc7524612fc35d01517eae8c9eb22eb7b5820
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