Skip to content

Commit 18976c9

Browse files
committed
Add test for nickname creating user
1 parent a1351b4 commit 18976c9

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

features/user.feature

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,3 +708,24 @@ Feature: Manage WordPress users
708708
Then STDOUT should be a table containing rows:
709709
| Field | Value |
710710
| user_url | http://www.testsite.com |
711+
712+
Scenario: Support nickname creating and updating user
713+
Given a WP install
714+
715+
When I run `wp user create testuser testuser@example.com --nickname=customtestuser --porcelain`
716+
Then STDOUT should be a number
717+
And save STDOUT as {USER_ID}
718+
719+
When I run `wp user meta get {USER_ID} nickname`
720+
Then STDOUT should be:
721+
"""
722+
customtestuser
723+
"""
724+
725+
When I run `wp user update {USER_ID} --nickname=newtestuser`
726+
And I run `wp user meta get {USER_ID} nickname`
727+
Then STDOUT should be:
728+
"""
729+
newtestuser
730+
"""
731+

0 commit comments

Comments
 (0)