diff options
Diffstat (limited to 'api4/user_test.go')
-rw-r--r-- | api4/user_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/api4/user_test.go b/api4/user_test.go index ae0dd79e5..82949f913 100644 --- a/api4/user_test.go +++ b/api4/user_test.go @@ -797,6 +797,13 @@ func TestPatchUser(t *testing.T) { t.Fatal("NotifyProps did not update properly") } + patch.Username = new(string) + *patch.Username = th.BasicUser2.Username + _, resp = Client.PatchUser(user.Id, patch) + CheckBadRequestStatus(t, resp) + + patch.Username = nil + _, resp = Client.PatchUser("junk", patch) CheckBadRequestStatus(t, resp) |