Relyra.Testing.Phoenix (relyra v1.9.0)

Copy Markdown View Source

Optional Phoenix convenience helpers for public Relyra testing fixtures.

This module is intentionally a thin wrapper around Relyra.Testing.post_params/2. It dispatches fixture POST parameters through the caller's real Phoenix endpoint and route so the ACS controller remains responsible for verifier and session seams.

Summary

Functions

Posts a public testing fixture through a Phoenix ACS route.

Functions

post_response(conn, endpoint, path, fixture, opts \\ [])

@spec post_response(
  Plug.Conn.t(),
  module(),
  binary(),
  Relyra.Testing.Fixture.t(),
  keyword()
) ::
  Plug.Conn.t()

Posts a public testing fixture through a Phoenix ACS route.

Raises ArgumentError when Phoenix.ConnTest is unavailable. Core Relyra.Testing fixture generation does not depend on Phoenix.