neues Admin UI Layout eingeführt. Alle Tests auf den neusten Stand gebracht.
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user