defmodule ServerWeb.ChannelCase do @moduledoc """ Test helpers for Phoenix Channels. Imports conveniences for testing channels and the sandbox-based Repo so tests run concurrently and are isolated. """ use ExUnit.CaseTemplate using do quote do import Phoenix.ChannelTest import ServerWeb.ChannelCase @endpoint ServerWeb.Endpoint end end setup tags do Server.DataCase.setup_sandbox(tags) :ok end end