fix leterSendAction

This commit is contained in:
Philipp Lang 2022-11-07 16:26:55 +01:00
parent a752932578
commit b4ff7fec1e
2 changed files with 2 additions and 2 deletions

View File

@ -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');

View File

@ -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);
} }