Skip to content

Commit 52b912e

Browse files
Add test for description meta
1 parent 6e436f7 commit 52b912e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

features/user-meta.feature

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,19 @@ Feature: Manage user custom fields
112112
| user_id | meta_key | meta_value |
113113
| 1 | foo | ["1","2"] |
114114
| 1 | nickname | admin |
115+
116+
Scenario: Get particular user meta
117+
Given a WP install
118+
119+
When I run `wp user create testuser testuser@example.com --description='This is description' --porcelain`
120+
Then STDOUT should be a number
121+
And save STDOUT as {USER_ID}
122+
123+
When I try the previous command again
124+
Then the return code should be 1
125+
126+
When I try `wp user-meta get {USER_ID} description`
127+
Then STDOUT should be:
128+
"""
129+
This is description
130+
"""

0 commit comments

Comments
 (0)