Skip to content

Commit 809d386

Browse files
committed
use double quotes
1 parent a1b7912 commit 809d386

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

features/post-block.feature

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Feature: Manage blocks in post content
5050
@require-wp-5.0
5151
Scenario: Parse blocks in a post
5252
Given a WP install
53-
When I run `wp post create --post_title='Block Post' --post_content='<!-- wp:paragraph {"align":"center"} --><p>Hello</p><!-- /wp:paragraph -->' --porcelain`
53+
When I run `wp post create --post_title="Block Post" --post_content="<!-- wp:paragraph {\"align\":\"center\"} --><p>Hello</p><!-- /wp:paragraph -->" --porcelain`
5454
Then save STDOUT as {POST_ID}
5555

5656
When I run `wp post block parse {POST_ID}`
@@ -344,7 +344,7 @@ Feature: Manage blocks in post content
344344
@require-wp-5.0
345345
Scenario: Replace block with new attributes
346346
Given a WP install
347-
When I run `wp post create --post_title='Block Post' --post_content='<!-- wp:heading {"level":2} --><h2>Title</h2><!-- /wp:heading -->' --porcelain`
347+
When I run `wp post create --post_title="Block Post" --post_content="<!-- wp:heading {\"level\":2} --><h2>Title</h2><!-- /wp:heading -->" --porcelain`
348348
Then save STDOUT as {POST_ID}
349349

350350
When I run `wp post block replace {POST_ID} core/heading core/heading --attrs='{"level":4}'`
@@ -429,7 +429,7 @@ Feature: Manage blocks in post content
429429
@require-wp-5.0
430430
Scenario: Get a block by index
431431
Given a WP install
432-
When I run `wp post create --post_title='Block Post' --post_content='<!-- wp:paragraph {"align":"center"} --><p>First</p><!-- /wp:paragraph --><!-- wp:heading {"level":2} --><h2>Title</h2><!-- /wp:heading -->' --porcelain`
432+
When I run `wp post create --post_title="Block Post" --post_content="<!-- wp:paragraph {\"align\":\"center\"} --><p>First</p><!-- /wp:paragraph --><!-- wp:heading {\"level\":2} --><h2>Title</h2><!-- /wp:heading -->" --porcelain`
433433
Then save STDOUT as {POST_ID}
434434

435435
When I run `wp post block get {POST_ID} 0`
@@ -487,7 +487,7 @@ Feature: Manage blocks in post content
487487
@require-wp-5.0
488488
Scenario: Update block attributes
489489
Given a WP install
490-
When I run `wp post create --post_title='Block Post' --post_content='<!-- wp:heading {"level":2} --><h2>Title</h2><!-- /wp:heading -->' --porcelain`
490+
When I run `wp post create --post_title="Block Post" --post_content="<!-- wp:heading {\"level\":2} --><h2>Title</h2><!-- /wp:heading -->" --porcelain`
491491
Then save STDOUT as {POST_ID}
492492

493493
When I run `wp post block update {POST_ID} 0 --attrs='{"level":3}'`
@@ -505,7 +505,7 @@ Feature: Manage blocks in post content
505505
@require-wp-5.0
506506
Scenario: Update heading level syncs HTML tag
507507
Given a WP install
508-
When I run `wp post create --post_title='Block Post' --post_content='<!-- wp:heading {"level":2} --><h2>Original Title</h2><!-- /wp:heading -->' --porcelain`
508+
When I run `wp post create --post_title="Block Post" --post_content="<!-- wp:heading {\"level\":2} --><h2>Original Title</h2><!-- /wp:heading -->" --porcelain`
509509
Then save STDOUT as {POST_ID}
510510

511511
When I run `wp post block update {POST_ID} 0 --attrs='{"level":4}'`
@@ -617,7 +617,7 @@ Feature: Manage blocks in post content
617617
@require-wp-5.0
618618
Scenario: Update block with replace-attrs flag
619619
Given a WP install
620-
When I run `wp post create --post_title='Block Post' --post_content='<!-- wp:heading {"level":2,"align":"center"} --><h2 class="has-text-align-center">Title</h2><!-- /wp:heading -->' --porcelain`
620+
When I run `wp post create --post_title="Block Post" --post_content="<!-- wp:heading {\"level\":2,\"align\":\"center\"} --><h2 class=\"has-text-align-center\">Title</h2><!-- /wp:heading -->" --porcelain`
621621
Then save STDOUT as {POST_ID}
622622

623623
When I run `wp post block update {POST_ID} 0 --attrs='{"level":4}' --replace-attrs`

features/term.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ Feature: Manage WordPress terms
181181
My\Term\Description
182182
"""
183183

184-
When I run `wp term update category {TERM_ID} --name='My\New\Term' --description='var isEmailValid = /^\S+@\S+.\S+$/.test(email);'`
184+
When I run `wp term update category {TERM_ID} --name="My\New\Term" --description="var isEmailValid = /^\S+@\S+.\S+$/.test(email);"`
185185
Then STDOUT should not be empty
186186

187187
When I run `wp term get category {TERM_ID} --field=name`

0 commit comments

Comments
 (0)