@@ -5,10 +5,10 @@ Feature: Manage post custom fields
55 Scenario : Postmeta CRUD
66 Given a WP install
77
8- When I run `wp post- meta add 1 foo 'bar' `
8+ When I run `wp post meta add 1 foo 'bar' `
99 Then STDOUT should not be empty
1010
11- When I run `wp post- meta get 1 foo`
11+ When I run `wp post meta get 1 foo`
1212 Then STDOUT should be:
1313 """
1414 bar
@@ -21,7 +21,7 @@ Feature: Manage post custom fields
2121 """
2222 And the return code should be 1
2323
24- When I run `wp post- meta set 1 foo '[ "1", "2" ]' --format=json`
24+ When I run `wp post meta set 1 foo '[ "1", "2" ]' --format=json`
2525 Then STDOUT should not be empty
2626
2727 When I run the previous command again
@@ -30,23 +30,23 @@ Feature: Manage post custom fields
3030 Success: Value passed for custom field 'foo' is unchanged.
3131 """
3232
33- When I run `wp post- meta get 1 foo --format=json`
33+ When I run `wp post meta get 1 foo --format=json`
3434 Then STDOUT should be:
3535 """
3636 ["1","2"]
3737 """
3838
39- When I run `echo "via STDIN" | wp post- meta set 1 foo`
40- And I run `wp post- meta get 1 foo`
39+ When I run `echo "via STDIN" | wp post meta set 1 foo`
40+ And I run `wp post meta get 1 foo`
4141 Then STDOUT should be:
4242 """
4343 via STDIN
4444 """
4545
46- When I run `wp post- meta delete 1 foo`
46+ When I run `wp post meta delete 1 foo`
4747 Then STDOUT should not be empty
4848
49- When I try `wp post- meta get 1 foo`
49+ When I try `wp post meta get 1 foo`
5050 Then the return code should be 1
5151
5252 Scenario : List post meta
@@ -194,16 +194,16 @@ Feature: Manage post custom fields
194194 Scenario : Make sure WordPress receives the slashed data it expects in meta fields
195195 Given a WP install
196196
197- When I run `wp post- meta add 1 foo 'My\M eta' `
197+ When I run `wp post meta add 1 foo 'My\M eta' `
198198 Then STDOUT should not be empty
199199
200- When I run `wp post- meta get 1 foo`
200+ When I run `wp post meta get 1 foo`
201201 Then STDOUT should be:
202202 """
203203 My\Meta
204204 """
205205
206- When I run `wp post- meta update 1 foo 'My\N ew\M eta' `
206+ When I run `wp post meta update 1 foo 'My\N ew\M eta' `
207207 Then STDOUT should be:
208208 """
209209 Success: Updated custom field 'foo'.
@@ -215,7 +215,7 @@ Feature: Manage post custom fields
215215 Success: Value passed for custom field 'foo' is unchanged.
216216 """
217217
218- When I run `wp post- meta get 1 foo`
218+ When I run `wp post meta get 1 foo`
219219 Then STDOUT should be:
220220 """
221221 My\New\Meta
0 commit comments