1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 07:36:14 -05:00

[PM-15547] Fix two-factor authentication revocation logic and update related tests (#5246)

* Fix two-factor authentication revocation logic and update related tests

* Refine test for RevokeNonCompliantOrganizationUserCommand to assert single user revocation
This commit is contained in:
Rui Tomé
2025-01-10 14:45:09 +00:00
committed by GitHub
parent 8a68f075cc
commit fbfabf2651
3 changed files with 63 additions and 15 deletions

View File

@ -162,7 +162,7 @@ public class RevokeNonCompliantOrganizationUserCommandTests
await sutProvider.GetDependency<IOrganizationUserRepository>()
.Received(1)
.RevokeManyByIdAsync(Arg.Any<IEnumerable<Guid>>());
.RevokeManyByIdAsync(Arg.Is<IEnumerable<Guid>>(x => x.Count() == 1 && x.Contains(userToRevoke.Id)));
Assert.True(result.Success);