mirror of
https://github.com/bitwarden/server
synced 2025-12-19 17:53:44 +00:00
[PM-1033] fix: controller tests
This commit is contained in:
@@ -38,7 +38,7 @@ public class OrganizationUsersControllerTests
|
||||
await sutProvider.GetDependency<IOrganizationService>().Received(1)
|
||||
.AcceptUserAsync(orgUserId, user, model.Token, sutProvider.GetDependency<IUserService>());
|
||||
await sutProvider.GetDependency<IOrganizationService>().DidNotReceiveWithAnyArgs()
|
||||
.UpdateUserResetPasswordEnrollmentAsync(default, default, default, default);
|
||||
.UpdateUserResetPasswordEnrollmentAsync(default, default, default, default, default);
|
||||
}
|
||||
|
||||
[Theory]
|
||||
@@ -60,6 +60,6 @@ public class OrganizationUsersControllerTests
|
||||
await sutProvider.GetDependency<IOrganizationService>().Received(1)
|
||||
.AcceptUserAsync(orgUserId, user, model.Token, sutProvider.GetDependency<IUserService>());
|
||||
await sutProvider.GetDependency<IOrganizationService>().Received(1)
|
||||
.UpdateUserResetPasswordEnrollmentAsync(orgId, user.Id, model.ResetPasswordKey, user.Id);
|
||||
.UpdateUserResetPasswordEnrollmentAsync(orgId, user.Id, model.ResetPasswordKey, sutProvider.GetDependency<IUserService>(), user.Id);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user