1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-27 14:16:19 -05:00

Update UpdateOrganizationUserCommandTests to use OrganizationUserType for user updates

This commit is contained in:
Rui Tome 2025-06-25 14:30:43 +01:00
parent 74e604347b
commit 0ac72cf2c9
No known key found for this signature in database
GPG Key ID: 526239D96A8EC066

View File

@ -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<BadRequestException>(
() => 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);
}