updated table structure for photobooth/sparkbooth settings. now there's a separate table for it. update all references and tests. also fixed the notification panel and the lightbox in the guest app.
This commit is contained in:
@@ -6,6 +6,7 @@ use App\Jobs\ProcessPhotoSecurityScan;
|
||||
use App\Models\Emotion;
|
||||
use App\Models\Event;
|
||||
use App\Models\EventPackage;
|
||||
use App\Models\EventPhotoboothSetting;
|
||||
use App\Models\MediaStorageTarget;
|
||||
use App\Models\Package;
|
||||
use App\Models\Photo;
|
||||
@@ -53,12 +54,15 @@ class PhotoboothIngestCommandTest extends TestCase
|
||||
->create([
|
||||
'slug' => 'demo-event',
|
||||
'status' => 'published',
|
||||
'photobooth_enabled' => true,
|
||||
]);
|
||||
|
||||
$event->update([
|
||||
'photobooth_path' => $tenant->slug.'/'.$event->id,
|
||||
]);
|
||||
$setting = EventPhotoboothSetting::factory()
|
||||
->for($event)
|
||||
->create([
|
||||
'enabled' => true,
|
||||
'mode' => 'ftp',
|
||||
'path' => $tenant->slug.'/'.$event->id,
|
||||
]);
|
||||
|
||||
$package = Package::factory()->create(['max_photos' => 5]);
|
||||
EventPackage::create([
|
||||
@@ -68,7 +72,8 @@ class PhotoboothIngestCommandTest extends TestCase
|
||||
'used_photos' => 0,
|
||||
]);
|
||||
|
||||
Storage::disk('photobooth')->put($event->photobooth_path.'/sample.jpg', $this->sampleImage());
|
||||
Storage::disk('photobooth')->makeDirectory($setting->path);
|
||||
Storage::disk('photobooth')->put($setting->path.'/sample.jpg', $this->sampleImage());
|
||||
Emotion::factory()->create();
|
||||
|
||||
Bus::fake();
|
||||
@@ -81,7 +86,7 @@ class PhotoboothIngestCommandTest extends TestCase
|
||||
'ingest_source' => Photo::SOURCE_PHOTOBOOTH,
|
||||
]);
|
||||
|
||||
Storage::disk('photobooth')->assertMissing($event->photobooth_path.'/sample.jpg');
|
||||
Storage::disk('photobooth')->assertMissing($setting->path.'/sample.jpg');
|
||||
|
||||
Bus::assertDispatched(ProcessPhotoSecurityScan::class);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user