Skip to content

Commit 2af0791

Browse files
Issue #34: Add behat test for listing no role users
1 parent 6400983 commit 2af0791

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

features/user-list.feature

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,16 @@ Feature: List WordPress users
2626
"""
2727
bobjones
2828
"""
29+
30+
Scenario: List users without roles
31+
Given a WP install
32+
When I run `wp user generate --count=1 --format=ids`
33+
Then save STDOUT as {USER_ID}
34+
35+
And I run `wp user remove-role {USER_ID} subscriber`
36+
37+
When I run `wp user list --role=none --field=id`
38+
Then STDOUT should be:
39+
"""
40+
{USER_ID}
41+
"""

0 commit comments

Comments
 (0)