Enable guest photo deletion and ownership flags
This commit is contained in:
@@ -44,6 +44,7 @@ class EventPhotosLocaleTest extends TestCase
|
||||
'tenant_id' => $event->tenant_id,
|
||||
'task_id' => $task->id,
|
||||
'emotion_id' => $emotion->id,
|
||||
'created_by_device_id' => 'device-123',
|
||||
'created_at' => now(),
|
||||
'status' => 'approved',
|
||||
]);
|
||||
@@ -57,6 +58,7 @@ class EventPhotosLocaleTest extends TestCase
|
||||
$responseEn->assertJsonPath('data.0.emotion.name', 'Joy');
|
||||
$responseEn->assertJsonPath('data.0.emotion.icon', '🙂');
|
||||
$responseEn->assertJsonPath('data.0.emotion.color', '#FF00AA');
|
||||
$responseEn->assertJsonPath('data.0.is_mine', true);
|
||||
|
||||
$etag = $responseEn->headers->get('ETag');
|
||||
$this->assertNotEmpty($etag);
|
||||
|
||||
Reference in New Issue
Block a user