Skip to main content

assert_not_sent

Function assert_not_sent 

Source
pub fn assert_not_sent<M>(predicate: impl Fn(&SentMail) -> bool)
where M: Mailable,
Expand description

Laravel’s Mail::fake()/assertSent() - re-exported directly from larust-mail (not through larust_support::mail, which is the production facade apps see; calling fake() from real app code would silently and permanently stop that process from ever sending real mail again). See larust_mail::fake’s own doc comments for the full design rationale. Panics if any recorded M satisfies predicate. Same lock-then-drop- before-asserting shape as assert_sent, for the same reason.