Skip to content

Commit 237c273

Browse files
committed
Given -> When
1 parent f866aa4 commit 237c273

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

features/user-application-password.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,12 +263,12 @@ Feature: Manage user custom fields
263263
When I try the previous command again
264264
Then the return code should be 1
265265

266-
Given I run `wp user application-password create {USER_ID} someapp --porcelain`
266+
When I run `wp user application-password create {USER_ID} someapp --porcelain`
267267
And save STDOUT as {PASSWORD}
268268
And I run `wp user application-password list {USER_ID} --name=someapp --field=uuid`
269269
And save STDOUT as {UUID}
270270

271-
Given I run `wp user application-password get {USER_ID} {UUID} --field=password | sed 's/\$/\\\$/g'`
271+
When I run `wp user application-password get {USER_ID} {UUID} --field=password | sed 's/\$/\\\$/g'`
272272
And save STDOUT as {HASH}
273273

274274
When I run `wp eval "var_export( wp_check_password( '{PASSWORD}', '{HASH}', {USER_ID} ) );"`
@@ -288,12 +288,12 @@ Feature: Manage user custom fields
288288
When I try the previous command again
289289
Then the return code should be 1
290290

291-
Given I run `wp user application-password create {USER_ID} someapp --porcelain`
291+
When I run `wp user application-password create {USER_ID} someapp --porcelain`
292292
And save STDOUT as {PASSWORD}
293293
And I run `wp user application-password list {USER_ID} --name=someapp --field=uuid`
294294
And save STDOUT as {UUID}
295295

296-
Given I run `wp user application-password get {USER_ID} {UUID} --field=password | sed 's/\$/\\\$/g'`
296+
When I run `wp user application-password get {USER_ID} {UUID} --field=password | sed 's/\$/\\\$/g'`
297297
And save STDOUT as {HASH}
298298

299299
When I run `wp eval "var_export( wp_verify_fast_hash( '{PASSWORD}', '{HASH}', {USER_ID} ) );"`

0 commit comments

Comments
 (0)