diff options
author | crupest <crupest@outlook.com> | 2021-04-30 17:53:40 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-04-30 17:53:40 +0800 |
commit | 5bd826d47c30f6e6ac6eded4fefb99f26786c3bc (patch) | |
tree | c9ad0a4706c70d3678945e6bce74b4a5da2a7eb5 /BackEnd/Timeline.Tests/IntegratedTests/UserTest.cs | |
parent | 5d28f5d0eb352369c73e3908c7d00d868676c304 (diff) | |
download | timeline-5bd826d47c30f6e6ac6eded4fefb99f26786c3bc.tar.gz timeline-5bd826d47c30f6e6ac6eded4fefb99f26786c3bc.tar.bz2 timeline-5bd826d47c30f6e6ac6eded4fefb99f26786c3bc.zip |
refactor: ...
Diffstat (limited to 'BackEnd/Timeline.Tests/IntegratedTests/UserTest.cs')
-rw-r--r-- | BackEnd/Timeline.Tests/IntegratedTests/UserTest.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/BackEnd/Timeline.Tests/IntegratedTests/UserTest.cs b/BackEnd/Timeline.Tests/IntegratedTests/UserTest.cs index 7286e12e..d34bcaf9 100644 --- a/BackEnd/Timeline.Tests/IntegratedTests/UserTest.cs +++ b/BackEnd/Timeline.Tests/IntegratedTests/UserTest.cs @@ -183,7 +183,7 @@ namespace Timeline.Tests.IntegratedTests public async Task DeleteRootUser_Should_Error()
{
using var client = await CreateClientAsAdministrator();
- await client.TestDeleteAssertErrorAsync("users/admin", errorCode: ErrorCodes.UserController.Delete_RootUser);
+ await client.TestDeleteAssertErrorAsync("users/admin", errorCode: ErrorCodes.UserController.InvalidOperationOnRootUser);
}
[Fact]
@@ -310,7 +310,7 @@ namespace Timeline.Tests.IntegratedTests public async Task Op_ChangePassword_BadOldPassword()
{
using var client = await CreateClientAsUser();
- await client.TestPostAssertErrorAsync(changePasswordUrl, new HttpChangePasswordRequest { OldPassword = "???", NewPassword = "???" }, errorCode: ErrorCodes.UserController.ChangePassword_BadOldPassword);
+ await client.TestPostAssertErrorAsync(changePasswordUrl, new HttpChangePasswordRequest { OldPassword = "???", NewPassword = "???" }, errorCode: ErrorCodes.UserController.ChangePasswordBadOldPassword);
}
[Fact]
|