aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline.Tests/IntegratedTests2/UserTest2.cs
diff options
context:
space:
mode:
Diffstat (limited to 'BackEnd/Timeline.Tests/IntegratedTests2/UserTest2.cs')
-rw-r--r--BackEnd/Timeline.Tests/IntegratedTests2/UserTest2.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/BackEnd/Timeline.Tests/IntegratedTests2/UserTest2.cs b/BackEnd/Timeline.Tests/IntegratedTests2/UserTest2.cs
index 12573a0c..4feb1da7 100644
--- a/BackEnd/Timeline.Tests/IntegratedTests2/UserTest2.cs
+++ b/BackEnd/Timeline.Tests/IntegratedTests2/UserTest2.cs
@@ -26,6 +26,15 @@ namespace Timeline.Tests.IntegratedTests2
}
[Fact]
+ public async Task UserPatchNotFound()
+ {
+ await AdminClient.TestJsonSendAsync(HttpMethod.Patch, "v2/users/notexist", new HttpUserPatchRequest
+ {
+ Nickname = "nick"
+ }, expectedStatusCode: HttpStatusCode.NotFound);
+ }
+
+ [Fact]
public async Task UserPatchUnauthorize()
{
await DefaultClient.TestJsonSendAsync(HttpMethod.Patch, "v2/users/user", new HttpUserPatchRequest