@@ -134,7 +134,7 @@ Feature: Manage user custom fields
134134 When I run `wp user application-password create 1 myapp1`
135135 Then STDOUT should not be empty
136136
137- When I run `wp user application-password create 1 myapp2`
137+ When I run `wp user application-password create 1 myapp2 --app-id=42 `
138138 Then STDOUT should not be empty
139139
140140 When I run `wp user application-password list 1 --name=myapp1 --field=uuid`
@@ -168,7 +168,7 @@ Feature: Manage user custom fields
168168 """
169169 And STDOUT should contain:
170170 """
171- {"uuid":"{UUID2}","app_id":"","name":"myapp2","password":"{JSONHASH2}","created":{CREATED2},"last_used":null,"last_ip":null}
171+ {"uuid":"{UUID2}","app_id":"42 ","name":"myapp2","password":"{JSONHASH2}","created":{CREATED2},"last_used":null,"last_ip":null}
172172 """
173173
174174 When I run `wp user application-password list 1 --format=json --fields=uuid,name`
@@ -184,37 +184,37 @@ Feature: Manage user custom fields
184184 When I run `wp user application-password list 1`
185185 Then STDOUT should be a table containing rows:
186186 | uuid | app_id | name | password | created | last_used | last_ip |
187- | {UUID2 } | | myapp2 | {HASH2 } | {CREATED2 } | | |
187+ | {UUID2 } | 42 | myapp2 | {HASH2 } | {CREATED2 } | | |
188188 | {UUID1 } | | myapp1 | {HASH1 } | {CREATED1 } | | |
189189
190190 When I run `wp user application-password list 1 --fields=uuid,app_id,name`
191191 Then STDOUT should be a table containing rows:
192192 | uuid | app_id | name |
193- | {UUID2 } | | myapp2 |
193+ | {UUID2 } | 42 | myapp2 |
194194 | {UUID1 } | | myapp1 |
195195
196196 When I run `wp user application-password list admin`
197197 Then STDOUT should be a table containing rows:
198198 | uuid | app_id | name | password | created | last_used | last_ip |
199- | {UUID2 } | | myapp2 | {HASH2 } | {CREATED2 } | | |
199+ | {UUID2 } | 42 | myapp2 | {HASH2 } | {CREATED2 } | | |
200200 | {UUID1 } | | myapp1 | {HASH1 } | {CREATED1 } | | |
201201
202202 When I run `wp user application-password list admin --orderby=created --order=asc`
203203 Then STDOUT should be a table containing rows:
204204 | uuid | app_id | name | password | created | last_used | last_ip |
205205 | {UUID1 } | | myapp1 | {HASH1 } | {CREATED1 } | | |
206- | {UUID2 } | | myapp2 | {HASH2 } | {CREATED2 } | | |
206+ | {UUID2 } | 42 | myapp2 | {HASH2 } | {CREATED2 } | | |
207207
208208 When I run `wp user application-password list admin --orderby=name --order=asc`
209209 Then STDOUT should be a table containing rows:
210210 | uuid | app_id | name | password | created | last_used | last_ip |
211211 | {UUID1 } | | myapp1 | {HASH1 } | {CREATED1 } | | |
212- | {UUID2 } | | myapp2 | {HASH2 } | {CREATED2 } | | |
212+ | {UUID2 } | 42 | myapp2 | {HASH2 } | {CREATED2 } | | |
213213
214214 When I run `wp user application-password list admin --orderby=name --order=desc`
215215 Then STDOUT should be a table containing rows:
216216 | uuid | app_id | name | password | created | last_used | last_ip |
217- | {UUID2 } | | myapp2 | {HASH2 } | {CREATED2 } | | |
217+ | {UUID2 } | 42 | myapp2 | {HASH2 } | {CREATED2 } | | |
218218 | {UUID1 } | | myapp1 | {HASH1 } | {CREATED1 } | | |
219219
220220 When I run `wp user application-password list admin --name=myapp2 --format=json`
@@ -237,6 +237,12 @@ Feature: Manage user custom fields
237237 myapp2
238238 """
239239
240+ When I run `wp user application-password list 1 --field=name --app-id=42`
241+ Then STDOUT should be:
242+ """
243+ myapp2
244+ """
245+
240246 @require-wp-5.6
241247 Scenario : Get particular user application password hash
242248 Given a WP install
0 commit comments