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:
parent
74e604347b
commit
0ac72cf2c9
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user