We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e436f7 commit 52b912eCopy full SHA for 52b912e
features/user-meta.feature
@@ -112,3 +112,19 @@ Feature: Manage user custom fields
112
| user_id | meta_key | meta_value |
113
| 1 | foo | ["1","2"] |
114
| 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