-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a1351b4
commit 18976c9
Showing
1 changed file
with
21 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 | ||
""" | ||