Skip to content

Commit a3658c9

Browse files
committed
assertNotOutgoing
1 parent 363af47 commit a3658c9

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/Illuminate/Support/Testing/Fakes/MailFake.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,19 @@ protected function assertSentTimes($mailable, $times = 1)
8080
);
8181
}
8282

83+
/**
84+
* Determine if a mailable was not sent or queued to be sent based on a truth-test callback.
85+
*
86+
* @param string|\Closure $mailable
87+
* @param callable|null $callback
88+
* @return void
89+
*/
90+
public function assertNotOutgoing($mailable, $callback = null)
91+
{
92+
$this->assertNotSent($mailable, $callback);
93+
$this->assertNotQueued($mailable, $callback);
94+
}
95+
8396
/**
8497
* Determine if a mailable was not sent based on a truth-test callback.
8598
*

0 commit comments

Comments
 (0)