Skip to main content

larust_testing/
lib.rs

1//! Test helpers for Larust apps - an HTTP test client, `actingAs`-style
2//! auth simulation, and a per-test-binary migrated database - added as a
3//! `[dev-dependencies]` entry, never shipped to production.
4
5mod client;
6mod db;
7mod response;
8mod transaction;
9
10pub use client::TestClient;
11pub use db::test_db;
12pub use response::TestResponse;
13pub use transaction::test_transaction;
14
15/// Laravel's `Mail::fake()`/`assertSent()` - re-exported directly from
16/// `larust-mail` (not through `larust_support::mail`, which is the
17/// production facade apps see; calling `fake()` from real app code would
18/// silently and permanently stop that process from ever sending real
19/// mail again). See `larust_mail::fake`'s own doc comments for the full
20/// design rationale.
21pub use larust_mail::{assert_not_sent, assert_sent, fake, SentMail};