Add emotion data and lightbox share/download
This commit is contained in:
@@ -29,6 +29,8 @@ class EventPhotosLocaleTest extends TestCase
|
||||
|
||||
$emotion = Emotion::factory()->create([
|
||||
'name' => ['de' => 'Freude', 'en' => 'Joy'],
|
||||
'icon' => '🙂',
|
||||
'color' => '#FF00AA',
|
||||
]);
|
||||
|
||||
$task = Task::factory()->create([
|
||||
@@ -52,6 +54,9 @@ class EventPhotosLocaleTest extends TestCase
|
||||
$responseEn->assertOk();
|
||||
$responseEn->assertHeader('X-Content-Locale', 'en');
|
||||
$responseEn->assertJsonFragment(['task_title' => 'Kiss Moment']);
|
||||
$responseEn->assertJsonPath('data.0.emotion.name', 'Joy');
|
||||
$responseEn->assertJsonPath('data.0.emotion.icon', '🙂');
|
||||
$responseEn->assertJsonPath('data.0.emotion.color', '#FF00AA');
|
||||
|
||||
$etag = $responseEn->headers->get('ETag');
|
||||
$this->assertNotEmpty($etag);
|
||||
|
||||
Reference in New Issue
Block a user