@@ -473,6 +473,7 @@ Feature: Do global search/replace
473
473
"""
474
474
And STDERR should be empty
475
475
476
+ @suppress_report__only_changes
476
477
Scenario : Suppress report or only report changes
477
478
Given a WP install
478
479
@@ -570,6 +571,18 @@ Feature: Do global search/replace
570
571
"""
571
572
And STDERR should be empty
572
573
574
+ When I run `wp search-replace nobaz1 baz6 --report-changed-only`
575
+ Then STDOUT should contain:
576
+ """
577
+ Success: Made 0 replacements.
578
+ """
579
+ And STDOUT should not contain:
580
+ """
581
+ Table Column Replacements Type
582
+ """
583
+ And STDERR should be empty
584
+
585
+ @no_table__no_primary_key
573
586
Scenario : Deal with non-existent table and table with no primary keys
574
587
Given a WP install
575
588
@@ -609,6 +622,18 @@ Feature: Do global search/replace
609
622
| no_key | | skipped | |
610
623
And STDERR should be empty
611
624
625
+ And I run `wp search-replace foo bar no_key --report-changed-only`
626
+ Then STDOUT should contain:
627
+ """
628
+ Success: Made 0 replacements.
629
+ """
630
+ And STDOUT should not contain:
631
+ """
632
+ | Table | Column | Replacements | Type |
633
+ | no_key | | skipped | |
634
+ """
635
+ And STDERR should be empty
636
+
612
637
When I try `wp search-replace foo bar no_key --no-report`
613
638
Then STDOUT should contain:
614
639
"""
0 commit comments