Skip to content

Commit 865454b

Browse files
committed
Fix Gherkin lint issues
1 parent 892570e commit 865454b

File tree

1 file changed

+14
-18
lines changed

1 file changed

+14
-18
lines changed

features/search-replace.feature

+14-18
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ Feature: Do global search/replace
4141
| Table | Column | Replacements | Type |
4242
| wp_posts | post_content | 0 | SQL |
4343

44-
4544
@require-mysql
4645
Scenario: Multisite search/replace
4746
Given a WP multisite install
@@ -104,7 +103,7 @@ Feature: Do global search/replace
104103
Then STDOUT should not be empty
105104

106105
When I run `wp search-replace bar burrito wp_post\?`
107-
And STDOUT should be a table containing rows:
106+
Then STDOUT should be a table containing rows:
108107
| Table | Column | Replacements | Type |
109108
| wp_posts | post_title | 1 | SQL |
110109
And STDOUT should not contain:
@@ -673,7 +672,7 @@ Feature: Do global search/replace
673672
| no_key | | skipped | |
674673
And STDERR should be empty
675674

676-
And I run `wp search-replace foo bar no_key --report-changed-only --all-tables`
675+
When I run `wp search-replace foo bar no_key --report-changed-only --all-tables`
677676
Then STDOUT should contain:
678677
"""
679678
Success: Made 0 replacements.
@@ -817,8 +816,7 @@ Feature: Do global search/replace
817816
And STDERR should be empty
818817

819818
When I run `wp option set foobar '_bar1_ _bar1_12345678901234567890123456789012345678901234567890_bar1_ _bar1_1234567890123456789012345678901234567890'`
820-
821-
When I run `wp search-replace '_bar1_' '_baz1_' wp_options --log`
819+
And I run `wp search-replace '_bar1_' '_baz1_' wp_options --log`
822820
Then STDOUT should contain:
823821
"""
824822
< _bar1_ _bar1_1234567890123456789012345678901234567890 [...] 1234567890123456789012345678901234567890_bar1_ _bar1_1234567890123456789012345678901234567890
@@ -841,8 +839,7 @@ Feature: Do global search/replace
841839
And STDERR should be empty
842840

843841
When I run `wp option set foobar2 '12345678901234567890_bar2_1234567890_bar2_ _bar2_ _bar2_'`
844-
845-
When I run `wp search-replace '_bar2_' '_baz2baz2_' wp_options --log --before_context=10 --after_context=10`
842+
And I run `wp search-replace '_bar2_' '_baz2baz2_' wp_options --log --before_context=10 --after_context=10`
846843
Then STDOUT should contain:
847844
"""
848845
< 1234567890_bar2_1234567890 [...] 1234567890_bar2_ _bar2_ _bar2_
@@ -865,8 +862,7 @@ Feature: Do global search/replace
865862
And STDERR should be empty
866863

867864
When I run `wp option set foobar3 '_bar3 _bar3 _bar3 _bar3'`
868-
869-
When I run `wp search-replace '_bar3' 'baz3' wp_options --log`
865+
And I run `wp search-replace '_bar3' 'baz3' wp_options --log`
870866
Then STDOUT should contain:
871867
"""
872868
< _bar3 _bar3 _bar3 _bar3
@@ -1148,7 +1144,7 @@ Feature: Do global search/replace
11481144
"""
11491145
O:8:"stdClass":5:{s:13:"current_field";i:1;s:11:"field_count";i:2;s:7:"lengths";a:1:{i:0;s:4:"blah";}s:8:"num_rows";i:1;s:4:"type";i:2;}
11501146
"""
1151-
Then save STDOUT as {SERIALIZED_RESULT}
1147+
And save STDOUT as {SERIALIZED_RESULT}
11521148
And a test_php.php file:
11531149
"""
11541150
<?php print_r(unserialize('{SERIALIZED_RESULT}'));
@@ -1159,11 +1155,11 @@ Feature: Do global search/replace
11591155
"""
11601156
stdClass Object
11611157
"""
1162-
Then STDOUT should contain:
1158+
And STDOUT should contain:
11631159
"""
11641160
[current_field] => 1
11651161
"""
1166-
Then STDOUT should contain:
1162+
And STDOUT should contain:
11671163
"""
11681164
[field_count] => 2
11691165
"""
@@ -1189,7 +1185,7 @@ Feature: Do global search/replace
11891185
"""
11901186
O:8:"stdClass":5:{s:13:"current_field";i:1;s:11:"field_count";i:2;s:7:"lengths";a:1:{i:0;s:4:"blah";}s:8:"num_rows";i:1;s:4:"type";i:2;}
11911187
"""
1192-
Then save STDOUT as {SERIALIZED_RESULT}
1188+
And save STDOUT as {SERIALIZED_RESULT}
11931189
And a test_php.php file:
11941190
"""
11951191
<?php print_r(unserialize('{SERIALIZED_RESULT}'));
@@ -1200,11 +1196,11 @@ Feature: Do global search/replace
12001196
"""
12011197
stdClass Object
12021198
"""
1203-
Then STDOUT should contain:
1199+
And STDOUT should contain:
12041200
"""
12051201
[current_field] => 1
12061202
"""
1207-
Then STDOUT should contain:
1203+
And STDOUT should contain:
12081204
"""
12091205
[field_count] => 2
12101206
"""
@@ -1230,7 +1226,7 @@ Feature: Do global search/replace
12301226
"""
12311227
O:8:"stdClass":5:{s:13:"current_field";i:1;s:11:"field_count";i:2;s:7:"lengths";a:1:{i:0;s:4:"blah";}s:8:"num_rows";i:1;s:4:"type";i:2;}
12321228
"""
1233-
Then save STDOUT as {SERIALIZED_RESULT}
1229+
And save STDOUT as {SERIALIZED_RESULT}
12341230
And a test_php.php file:
12351231
"""
12361232
<?php print_r(unserialize('{SERIALIZED_RESULT}'));
@@ -1241,11 +1237,11 @@ Feature: Do global search/replace
12411237
"""
12421238
stdClass Object
12431239
"""
1244-
Then STDOUT should contain:
1240+
And STDOUT should contain:
12451241
"""
12461242
[current_field] => 1
12471243
"""
1248-
Then STDOUT should contain:
1244+
And STDOUT should contain:
12491245
"""
12501246
[field_count] => 2
12511247
"""

0 commit comments

Comments
 (0)