neues Admin UI Layout eingeführt. Alle Tests auf den neusten Stand gebracht.

This commit is contained in:
Codex Agent
2025-12-30 10:24:06 +01:00
parent 902e78cae9
commit efe2f25b3e
85 changed files with 95235 additions and 19197 deletions

View File

@@ -48,17 +48,14 @@ class EventTasksLocaleTest extends TestCase
$response->assertOk();
$response->assertHeader('X-Content-Locale', 'en');
$response->assertJsonCount(1);
$response->assertJson([[
'id' => $task->id,
'title' => 'Kiss Moment',
'description' => 'EN Description',
'instructions' => 'EN Instructions',
'duration' => 3,
'is_completed' => false,
]]);
$this->assertSame('emotion-'.$emotion->id, $response->json('0.emotion.slug'));
$response->assertJsonCount(1, 'data');
$response->assertJsonPath('data.0.id', $task->id);
$response->assertJsonPath('data.0.title', 'Kiss Moment');
$response->assertJsonPath('data.0.description', 'EN Description');
$response->assertJsonPath('data.0.instructions', 'EN Instructions');
$response->assertJsonPath('data.0.duration', 3);
$response->assertJsonPath('data.0.is_completed', false);
$response->assertJsonPath('data.0.emotion.slug', 'emotion-'.$emotion->id);
}
public function test_it_falls_back_to_event_locale_when_locale_invalid(): void
@@ -91,8 +88,6 @@ class EventTasksLocaleTest extends TestCase
$response->assertOk();
$response->assertHeader('X-Content-Locale', 'de');
$response->assertJson([[
'title' => 'Aufgabe',
]]);
$response->assertJsonPath('data.0.title', 'Aufgabe');
}
}