Skip to content

Commit

Permalink
Add test for nickname creating user
Browse files Browse the repository at this point in the history
  • Loading branch information
ernilambar committed Apr 26, 2024
1 parent a1351b4 commit 18976c9
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions features/user.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""

0 comments on commit 18976c9

Please sign in to comment.