Skip to content

Commit

Permalink
Merge pull request #368 from wp-cli/fix/behat-json-formatting
Browse files Browse the repository at this point in the history
Fix JSON formatting in feature file
  • Loading branch information
schlessera authored Sep 2, 2022
2 parents 0c6e80a + e1abb56 commit bf6ad67
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions features/post-meta.feature
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ Feature: Manage post custom fields
And an input.json file:
"""
{
"foo": "bar"
"foo": "bar"
}
"""
And I run `wp post meta set 1 meta-key --format=json < input.json`
Expand All @@ -242,14 +242,14 @@ Feature: Manage post custom fields
And an input.json file:
"""
{
"foo": {
"bar": {
"baz": "some value"
}
},
"foo.com": {
"visitors": 999
}
"foo": {
"bar": {
"baz": "some value"
}
},
"foo.com": {
"visitors": 999
}
}
"""
And I run `wp post meta set 1 meta-key --format=json < input.json`
Expand Down Expand Up @@ -307,7 +307,7 @@ Feature: Manage post custom fields
And an input.json file:
"""
{
"foo": "bar"
"foo": "bar"
}
"""
And I run `wp post meta set 1 meta-key --format=json < input.json`
Expand All @@ -332,10 +332,10 @@ Feature: Manage post custom fields
And an input.json file:
"""
{
"foo": {
"bar": "baz"
},
"bar": "bad"
"foo": {
"bar": "baz"
},
"bar": "bad"
}
"""
And a patch file:
Expand All @@ -354,10 +354,10 @@ Feature: Manage post custom fields
Then STDOUT should be JSON containing:
"""
{
"foo": {
"bar": "new value"
},
"bar": "bad"
"foo": {
"bar": "new value"
},
"bar": "bad"
}
"""
Expand All @@ -367,10 +367,10 @@ Feature: Manage post custom fields
And an input.json file:
"""
{
"foo": {
"bar": "baz"
},
"bar": "bad"
"foo": {
"bar": "baz"
},
"bar": "bad"
}
"""
And I run `wp post meta set 1 meta-key --format=json < input.json`
Expand All @@ -389,10 +389,10 @@ Feature: Manage post custom fields
And an input.json file:
"""
{
"foo": {
"bar": "baz",
"abe": "lincoln"
}
"foo": {
"bar": "baz",
"abe": "lincoln"
}
}
"""
And I run `wp post meta set 1 meta-key --format=json < input.json`
Expand All @@ -407,9 +407,9 @@ Feature: Manage post custom fields
Then STDOUT should be JSON containing:
"""
{
"foo": {
"abe": "lincoln"
}
"foo": {
"abe": "lincoln"
}
}
"""
Expand All @@ -419,9 +419,9 @@ Feature: Manage post custom fields
And an input.json file:
"""
{
"foo": {
"bar": "baz"
}
"foo": {
"bar": "baz"
}
}
"""
And I run `wp post meta set 1 meta-key --format=json < input.json`
Expand Down Expand Up @@ -449,7 +449,7 @@ Feature: Manage post custom fields
Then STDOUT should be JSON containing:
"""
{
"foo": "bar"
"foo": "bar"
}
"""
Expand Down

0 comments on commit bf6ad67

Please sign in to comment.