Add photobooth uploader download email
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user