fix leterSendAction
This commit is contained in:
parent
a752932578
commit
b4ff7fec1e
|
@ -31,7 +31,7 @@ class LetterSendAction
|
||||||
/**
|
/**
|
||||||
* Execute the console command.
|
* Execute the console command.
|
||||||
*/
|
*/
|
||||||
private function handle(): int
|
public function handle(): int
|
||||||
{
|
{
|
||||||
foreach (app(DocumentFactory::class)->types as $type) {
|
foreach (app(DocumentFactory::class)->types as $type) {
|
||||||
$letters = app(DocumentFactory::class)->repoCollection($type, 'E-Mail');
|
$letters = app(DocumentFactory::class)->repoCollection($type, 'E-Mail');
|
||||||
|
|
|
@ -37,7 +37,7 @@ class LetterSendActionTest extends TestCase
|
||||||
{
|
{
|
||||||
Mail::fake();
|
Mail::fake();
|
||||||
|
|
||||||
LetterSendAction::run();
|
app(LetterSendAction::class)->handle();
|
||||||
|
|
||||||
Mail::assertSent(PaymentMail::class, fn ($mail) => Storage::path('rechnung-fur-mom.pdf') === $mail->filename);
|
Mail::assertSent(PaymentMail::class, fn ($mail) => Storage::path('rechnung-fur-mom.pdf') === $mail->filename);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue