20 lines
390 B
Elixir
20 lines
390 B
Elixir
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
|