test set media fields
This commit is contained in:
parent
c7b55b64ca
commit
1ce7688d33
2 changed files with 22 additions and 1 deletions
|
|
@ -16,9 +16,13 @@ class SetsEndpointTest extends TestCase
|
|||
$setRepository = app(SetRepository::class);
|
||||
$baderechSet = $setRepository->create(new CreateSetDto(
|
||||
name: 'Baderech HaAvodah',
|
||||
description: 'Baderech HaAvodah is a way of living',
|
||||
iconImageUrl: '/assets/baderech-haavodah-icon.svg',
|
||||
));
|
||||
$dailyLearningSet = $setRepository->create(new CreateSetDto(
|
||||
name: 'Daily Learning',
|
||||
description: 'Daily learning for steady growth',
|
||||
iconImageUrl: '/assets/daily-learning-icon.svg',
|
||||
));
|
||||
|
||||
$response = $this->getJson('/api/sets');
|
||||
|
|
@ -29,10 +33,14 @@ class SetsEndpointTest extends TestCase
|
|||
[
|
||||
'id' => $baderechSet->getId(),
|
||||
'name' => $baderechSet->getName(),
|
||||
'description' => $baderechSet->getDescription(),
|
||||
'iconImageUrl' => $baderechSet->getIconImageUrl(),
|
||||
],
|
||||
[
|
||||
'id' => $dailyLearningSet->getId(),
|
||||
'name' => $dailyLearningSet->getName(),
|
||||
'description' => $dailyLearningSet->getDescription(),
|
||||
'iconImageUrl' => $dailyLearningSet->getIconImageUrl(),
|
||||
],
|
||||
],
|
||||
]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue