Something akin to that should work in a normal phoenix MyAppWeb.ConnCase module:
test "no header" do
conn = build_conn(:get, "/")
conn = call_plug(conn, [])
assert conn.status == 403
assert conn.state == :sent
assert conn.halted
end






















