Skip to content

Commit fad7f7a

Browse files
committed
Ensure application passwords are deactivated on WP < 5.6
1 parent e8fc312 commit fad7f7a

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

features/user-application-password.feature

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,35 @@
11
Feature: Manage user custom fields
22

3+
Scenario: User application passwords are disabled for WordPress lower than 5.6
4+
Given a WP install
5+
And I try `wp theme install twentytwenty --activate`
6+
And I run `wp core download --version=5.5 --force`
7+
8+
When I try `wp user application-password create 1 myapp`
9+
Then STDERR should contain:
10+
"""
11+
Error: Requires WordPress 5.6 or greater.
12+
"""
13+
14+
When I try `wp user application-password list 1`
15+
Then STDERR should contain:
16+
"""
17+
Error: Requires WordPress 5.6 or greater.
18+
"""
19+
20+
When I try `wp user application-password get 1 123`
21+
Then STDERR should contain:
22+
"""
23+
Error: Requires WordPress 5.6 or greater.
24+
"""
25+
26+
When I try `wp user application-password delete 1 123`
27+
Then STDERR should contain:
28+
"""
29+
Error: Requires WordPress 5.6 or greater.
30+
"""
31+
32+
@require-wp-5.6
333
Scenario: User application password CRUD
434
Given a WP install
535

@@ -96,6 +126,7 @@ Feature: Manage user custom fields
96126
0
97127
"""
98128

129+
@require-wp-5.6
99130
Scenario: List user application passwords
100131
Given a WP install
101132

@@ -205,6 +236,7 @@ Feature: Manage user custom fields
205236
myapp2
206237
"""
207238

239+
@require-wp-5.6
208240
Scenario: Get particular user application password hash
209241
Given a WP install
210242

0 commit comments

Comments
 (0)