Commit 4c0b484
authored
Warn when an invalid role is provided for
* Added the Invalid role check for the wp user update command
* - Used validate_role() function to validate the role.
- Added $warn_user_only parameter in the validate_role() function.
* - Functional test added
* - Functional test for right scenario added
* - Setting up the user before testing.
* - Functional test added for the wp user update and assertion added for the admin rolewp user update (#406)1 parent a781eff commit 4c0b484
2 files changed
+32
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
242 | 262 | | |
243 | 263 | | |
244 | 264 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
529 | 529 | | |
530 | 530 | | |
531 | 531 | | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
532 | 536 | | |
533 | 537 | | |
534 | 538 | | |
| |||
1156 | 1160 | | |
1157 | 1161 | | |
1158 | 1162 | | |
1159 | | - | |
| 1163 | + | |
| 1164 | + | |
1160 | 1165 | | |
1161 | | - | |
| 1166 | + | |
1162 | 1167 | | |
1163 | 1168 | | |
1164 | | - | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
1165 | 1174 | | |
1166 | 1175 | | |
1167 | 1176 | | |
| |||
0 commit comments