From 0ac72cf2c98d0d8ce39387de7121c72d65c31642 Mon Sep 17 00:00:00 2001 From: Rui Tome Date: Wed, 25 Jun 2025 14:30:43 +0100 Subject: [PATCH] Update UpdateOrganizationUserCommandTests to use OrganizationUserType for user updates --- .../OrganizationUsers/UpdateOrganizationUserCommandTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Core.Test/AdminConsole/OrganizationFeatures/OrganizationUsers/UpdateOrganizationUserCommandTests.cs b/test/Core.Test/AdminConsole/OrganizationFeatures/OrganizationUsers/UpdateOrganizationUserCommandTests.cs index 02df80451c..bd112c5d40 100644 --- a/test/Core.Test/AdminConsole/OrganizationFeatures/OrganizationUsers/UpdateOrganizationUserCommandTests.cs +++ b/test/Core.Test/AdminConsole/OrganizationFeatures/OrganizationUsers/UpdateOrganizationUserCommandTests.cs @@ -258,7 +258,7 @@ public class UpdateOrganizationUserCommandTests .Select(guid => new Collection { Id = guid, OrganizationId = user.OrganizationId, Type = CollectionType.DefaultUserCollection }).ToList()); var exception = await Assert.ThrowsAsync( - () => sutProvider.Sut.UpdateUserAsync(user, savingUserId, collectionAccess, null)); + () => sutProvider.Sut.UpdateUserAsync(user, OrganizationUserType.User, savingUserId, collectionAccess, null)); Assert.Contains("You cannot modify member access for collections with the type as DefaultUserCollection.", exception.Message); }