Skip to content
Merged
Changes from all commits
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
12 changes: 9 additions & 3 deletions features/search-replace-export.feature
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Feature: Search / replace with file export
"""
And STDOUT should contain:
"""
('1', 'siteurl', 'https://example.net', 'yes'),
('1', 'siteurl', 'https://example.net',
"""

When I run `wp option get home`
Expand Down Expand Up @@ -51,13 +51,19 @@ Feature: Search / replace with file export
Then STDOUT should contain:
"""
INSERT INTO `wp_options` (`option_id`, `option_name`, `option_value`, `autoload`) VALUES{SPACE}
('1', 'siteurl', 'https://example.com', 'yes'),
"""
And STDOUT should contain:
"""
('1', 'siteurl', 'https://example.com'
"""

When I run `wp search-replace example.com example.net --skip-columns=option_value --export --export_insert_size=1`
Then STDOUT should contain:
"""
('1', 'siteurl', 'https://example.com', 'yes');
('1', 'siteurl', 'https://example.com'
"""
And STDOUT should contain:
"""
INSERT INTO `wp_options` (`option_id`, `option_name`, `option_value`, `autoload`) VALUES{SPACE}
"""

Expand Down