mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-13 09:24:22 +01:00
19 lines
417 B
Elixir
19 lines
417 B
Elixir
|
defmodule Philomena.ModerationLogsFixtures do
|
||
|
@moduledoc """
|
||
|
This module defines test helpers for creating
|
||
|
entities via the `Philomena.ModerationLogs` context.
|
||
|
"""
|
||
|
|
||
|
@doc """
|
||
|
Generate a moderation_log.
|
||
|
"""
|
||
|
def moderation_log_fixture(attrs \\ %{}) do
|
||
|
{:ok, moderation_log} =
|
||
|
attrs
|
||
|
|> Enum.into(%{})
|
||
|
|> Philomena.ModerationLogs.create_moderation_log()
|
||
|
|
||
|
moderation_log
|
||
|
end
|
||
|
end
|