@@ -20,20 +20,27 @@ Feature: Search / replace with file export
20
20
http://example.com
21
21
"""
22
22
23
+ When I run `wp search-replace example.com example.net --skip-tables=wp_options --export
24
+ Then STDOUT should not contain:
25
+ """
26
+ INSERT INTO `wp_options` (`option_id`, `option_name`, `option_value`, `autoload`) VALUES
27
+ ('1', 'siteurl', 'http://example.com', 'yes'),
28
+ """
29
+
23
30
When I run `wp search-replace example.com example.net --skip-columns=option_value --export`
24
31
Then STDOUT should contain:
25
32
"""
26
- INSERT INTO `wp_options` (`option_id`, `option_name`, `option_value`, `autoload`) VALUES
33
+ INSERT INTO `wp_options` (`option_id`, `option_name`, `option_value`, `autoload`) VALUES
27
34
('1', 'siteurl', 'http://example.com', 'yes'),
28
35
"""
29
36
30
37
When I run `wp search-replace example.com example.net --skip-columns=option_value --export --export_insert_size=1`
31
38
Then STDOUT should contain:
32
39
"""
33
40
('1', 'siteurl', 'http://example.com', 'yes');
34
- INSERT INTO `wp_options` (`option_id`, `option_name`, `option_value`, `autoload`) VALUES
41
+ INSERT INTO `wp_options` (`option_id`, `option_name`, `option_value`, `autoload`) VALUES
35
42
"""
36
-
43
+
37
44
When I run `wp search-replace foo bar --export | tail -n 1`
38
45
Then STDOUT should not contain:
39
46
"""
0 commit comments