29 lines
755 B
PHP
29 lines
755 B
PHP
<?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);
|
|
}
|
|
}
|