Add photobooth uploader download email

This commit is contained in:
Codex Agent
2026-01-13 09:59:39 +01:00
parent 775786c6f1
commit 5f3d6af9f0
12 changed files with 309 additions and 1 deletions

View File

@@ -0,0 +1,28 @@
<?php
namespace Tests\Feature\Photobooth;
use App\Mail\PhotoboothUploaderDownload;
use App\Models\Event;
use Illuminate\Support\Facades\Mail;
use PHPUnit\Framework\Attributes\Test;
use Tests\Feature\Tenant\TenantTestCase;
class PhotoboothUploaderDownloadEmailTest extends TenantTestCase
{
#[Test]
public function it_sends_the_photobooth_uploader_download_email(): void
{
Mail::fake();
$event = Event::factory()->for($this->tenant)->create([
'slug' => 'photobooth-email',
]);
$response = $this->authenticatedRequest('POST', "/api/v1/tenant/events/{$event->slug}/photobooth/uploader-email");
$response->assertOk();
Mail::assertQueued(PhotoboothUploaderDownload::class);
}
}