diff --git a/backend/internal/handler/user_handler_test.go b/backend/internal/handler/user_handler_test.go index 94923205..a232e5e8 100644 --- a/backend/internal/handler/user_handler_test.go +++ b/backend/internal/handler/user_handler_test.go @@ -1085,6 +1085,18 @@ func TestUserHandler_BulkCreateUsers_HanmacEmailPolicy(t *testing.T) { }) t.Run("full email duplicate local part is blocking error", func(t *testing.T) { + mockKratos := new(MockKratosAdmin) + mockOry := new(MockOryProvider) + mockTenant := new(MockTenantServiceForUser) + mockRepo := new(MockUserRepoForHandler) + + h := &UserHandler{ + KratosAdmin: mockKratos, + OryProvider: mockOry, + TenantService: mockTenant, + UserRepo: mockRepo, + } + app := fiber.New() app.Post("/users/bulk", func(c *fiber.Ctx) error { c.Locals("user_profile", &domain.UserProfileResponse{