aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline.Tests/IntegratedTests/UserPermissionTest.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-04-30 17:53:40 +0800
committercrupest <crupest@outlook.com>2021-04-30 17:53:40 +0800
commite536121d97610af09d6bf4a51a875b0f7d50f702 (patch)
tree4f6e2f0ddae0920cc1ef3213dc36953a95bb2fc8 /BackEnd/Timeline.Tests/IntegratedTests/UserPermissionTest.cs
parent9f81ec1d4a54239ae9456923115f4a1e379d9e71 (diff)
downloadtimeline-e536121d97610af09d6bf4a51a875b0f7d50f702.tar.gz
timeline-e536121d97610af09d6bf4a51a875b0f7d50f702.tar.bz2
timeline-e536121d97610af09d6bf4a51a875b0f7d50f702.zip
refactor: ...
Diffstat (limited to 'BackEnd/Timeline.Tests/IntegratedTests/UserPermissionTest.cs')
-rw-r--r--BackEnd/Timeline.Tests/IntegratedTests/UserPermissionTest.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/BackEnd/Timeline.Tests/IntegratedTests/UserPermissionTest.cs b/BackEnd/Timeline.Tests/IntegratedTests/UserPermissionTest.cs
index 83dc51f9..26714c24 100644
--- a/BackEnd/Timeline.Tests/IntegratedTests/UserPermissionTest.cs
+++ b/BackEnd/Timeline.Tests/IntegratedTests/UserPermissionTest.cs
@@ -41,10 +41,10 @@ namespace Timeline.Tests.IntegratedTests
using var client = await CreateClientAsAdministrator();
await client.TestPutAssertErrorAsync($"users/admin/permissions/{permission}",
- errorCode: ErrorCodes.UserController.ChangePermission_RootUser);
+ errorCode: ErrorCodes.UserController.InvalidOperationOnRootUser);
await client.TestDeleteAssertErrorAsync($"users/admin/permissions/{permission}",
- errorCode: ErrorCodes.UserController.ChangePermission_RootUser);
+ errorCode: ErrorCodes.UserController.InvalidOperationOnRootUser);
}
[Theory]