Skip to content

Commit 39992db

Browse files
authored
Merge pull request #136 from wp-cli/refine-feature-files
Fix docstring indent issue in feature files
2 parents a546f65 + d224166 commit 39992db

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

features/checksum-core.feature

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -233,30 +233,30 @@ Feature: Validate checksums for WordPress install
233233
Given a WP install
234234
And "WordPress" replaced with "PressWord" in the readme.html file
235235
And a wp-includes/some-filename.php file:
236-
"""
237-
sample content of some file
238-
"""
236+
"""
237+
sample content of some file
238+
"""
239239

240240
When I try `wp core verify-checksums --exclude='readme.html,wp-includes/some-filename.php'`
241241
Then STDERR should be empty
242242
And STDOUT should be:
243-
"""
244-
Success: WordPress installation verifies against checksums.
245-
"""
243+
"""
244+
Success: WordPress installation verifies against checksums.
245+
"""
246246
And the return code should be 0
247247

248248
Scenario: Verify core checksums with missing excluded file
249249
Given a WP install
250250
And "WordPress" replaced with "PressWord" in the readme.html file
251251
And a wp-includes/some-filename.php file:
252-
"""
253-
sample content of some file
254-
"""
252+
"""
253+
sample content of some file
254+
"""
255255

256256
When I try `wp core verify-checksums --exclude='wp-includes/some-filename.php'`
257257
Then STDERR should be:
258258
"""
259259
Warning: File doesn't verify against checksum: readme.html
260260
Error: WordPress installation doesn't verify against checksums.
261261
"""
262-
And the return code should be 1
262+
And the return code should be 1

features/checksum-plugin.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Feature: Validate checksums for WordPress plugins
135135
unset( $all_plugins['duplicate-post/duplicate-post.php'] );
136136
return $all_plugins;
137137
} );
138-
"""
138+
"""
139139
And "Duplicate Post" replaced with "Different Name" in the wp-content/plugins/duplicate-post/duplicate-post.php file
140140

141141
When I run `wp plugin list --fields=name`

0 commit comments

Comments
 (0)