SandboxCase.Sandbox.Plug (sandbox_case v0.4.0-rc1)

Copy Markdown View Source

Plug that propagates test sandbox state from the test owner process to HTTP request processes (controllers, channels).

Reads the owner PID from the user-agent header (encoded by Phoenix.Ecto.SQL.Sandbox) and propagates Ecto sandbox access, Mimic/Mox stubs, Cachex sandbox, and FunWithFlags sandbox.