-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #495 from ernilambar/274-user-nickname
Support nickname creating user
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -708,3 +708,24 @@ Feature: Manage WordPress users | |
Then STDOUT should be a table containing rows: | ||
| Field | Value | | ||
| user_url | http://www.testsite.com | | ||
Scenario: Support nickname creating and updating user | ||
Given a WP install | ||
When I run `wp user create testuser [email protected] --nickname=customtestuser --porcelain` | ||
Then STDOUT should be a number | ||
And save STDOUT as {USER_ID} | ||
When I run `wp user meta get {USER_ID} nickname` | ||
Then STDOUT should be: | ||
""" | ||
customtestuser | ||
""" | ||
When I run `wp user update {USER_ID} --nickname=newtestuser` | ||
And I run `wp user meta get {USER_ID} nickname` | ||
Then STDOUT should be: | ||
""" | ||
newtestuser | ||
""" | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters