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
Less brittle test
  • Loading branch information
danielbachhuber committed Apr 27, 2024
commit 8211354f3ebf0f724df3f057ca48873a442cb9c6
12 changes: 4 additions & 8 deletions features/db-search.feature
Original file line number Diff line number Diff line change
Expand Up @@ -1070,11 +1070,10 @@ Feature: Search through the database
Scenario: Search for a string and output the format as a table
Given a WP install

When I run `wp db search example.com --format=csv`
When I run `wp db search mail.example.com --format=csv`
Then STDOUT should contain:
"""
wp_options,option_value,mail.example.com,option_id,14
wp_options,option_value,login@example.com,option_id,15
wp_options,option_value,mail.example.com,option_id
"""

When I try `wp db search example.com --format=ids`
Expand All @@ -1085,8 +1084,5 @@ Feature: Search through the database
And STDOUT should be empty
And the return code should be 1

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