@@ -271,10 +271,15 @@ Feature: Manage user custom fields
271271 When I run `wp user application-password list {USER_ID} --name=someapp --field=uuid`
272272 Then save STDOUT as {UUID}
273273
274- When I run `wp user application-password get {USER_ID} {UUID} --field=password | sed 's/ \$ / \\\$ /g' `
274+ When I run `wp user application-password get {USER_ID} {UUID} --field=password`
275275 Then save STDOUT as {HASH}
276276
277- When I run `wp eval "var_export( wp_check_password( '{PASSWORD}', '{HASH}', {USER_ID} ) );" `
277+ Given a check-password.php file:
278+ """
279+ <?php
280+ var_export( wp_check_password( '{PASSWORD}', '{HASH}', {USER_ID} ) );
281+ """
282+ When I run `wp eval-file check-password.php`
278283 Then STDOUT should contain:
279284 """
280285 true
@@ -297,10 +302,15 @@ Feature: Manage user custom fields
297302 When I run `wp user application-password list {USER_ID} --name=someapp --field=uuid`
298303 Then save STDOUT as {UUID}
299304
300- When I run `wp user application-password get {USER_ID} {UUID} --field=password | sed 's/ \$ / \\\$ /g' `
305+ When I run `wp user application-password get {USER_ID} {UUID} --field=password`
301306 Then save STDOUT as {HASH}
302307
303- When I run `wp eval "var_export( wp_verify_fast_hash( '{PASSWORD}', '{HASH}', {USER_ID} ) );" `
308+ Given a verify-fast-hash.php file:
309+ """
310+ <?php
311+ var_export( wp_verify_fast_hash( '{PASSWORD}', '{HASH}', {USER_ID} ) );
312+ """
313+ When I run `wp eval-file verify-fast-hash.php`
304314 Then STDOUT should contain:
305315 """
306316 true
0 commit comments