This commit is contained in:
Pierre de Lacroix 2026-01-22 16:29:25 +01:00
parent 617c2ab725
commit c451662178
Signed by: lateralus23
GPG key ID: 53E0CEC29C24EF39
17 changed files with 602 additions and 2 deletions

View file

@ -0,0 +1,20 @@
defmodule CampApi.PaymentLinksFixtures do
@moduledoc """
This module defines test helpers for creating
entities via the `CampApi.PaymentLinks` context.
"""
@doc """
Generate a link.
"""
def link_fixture(attrs \\ %{}) do
{:ok, link} =
attrs
|> Enum.into(%{
price: "some price"
})
|> CampApi.PaymentLinks.create_link()
link
end
end