Skip to content

Commit

Permalink
assertNotOutgoing
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Aug 11, 2021
1 parent 363af47 commit a3658c9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Illuminate/Support/Testing/Fakes/MailFake.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,19 @@ protected function assertSentTimes($mailable, $times = 1)
);
}

/**
* Determine if a mailable was not sent or queued to be sent based on a truth-test callback.
*
* @param string|\Closure $mailable
* @param callable|null $callback
* @return void
*/
public function assertNotOutgoing($mailable, $callback = null)
{
$this->assertNotSent($mailable, $callback);
$this->assertNotQueued($mailable, $callback);
}

/**
* Determine if a mailable was not sent based on a truth-test callback.
*
Expand Down

0 comments on commit a3658c9

Please sign in to comment.