File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff 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 [email protected] --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+
You can’t perform that action at this time.
0 commit comments