feat: ajout de la gestion des URL d'image et de miniature dans les réponses des mangas, avec mise à jour des classes et des tests associés
This commit is contained in:
parent
6ea24deacf
commit
7051bf5274
@@ -6,6 +6,7 @@ use App\Domain\Manga\Application\Query\GetMangaBySlug;
|
||||
use App\Domain\Manga\Application\QueryHandler\GetMangaBySlugHandler;
|
||||
use App\Domain\Manga\Domain\Exception\MangaNotFoundException;
|
||||
use App\Domain\Manga\Domain\Model\Manga;
|
||||
use App\Domain\Manga\Domain\Model\ValueObject\ImageUrls;
|
||||
use App\Domain\Manga\Domain\Model\ValueObject\MangaId;
|
||||
use App\Domain\Manga\Domain\Model\ValueObject\MangaSlug;
|
||||
use App\Domain\Manga\Domain\Model\ValueObject\MangaTitle;
|
||||
@@ -37,6 +38,8 @@ class GetMangaBySlugHandlerTest extends TestCase
|
||||
status: 'ongoing',
|
||||
externalId: null,
|
||||
imageUrl: 'https://example.com/image.jpg',
|
||||
imageUrls: new ImageUrls('https://example.com/image.jpg', 'https://example.com/thumbnail.jpg'),
|
||||
|
||||
rating: 4.5
|
||||
);
|
||||
$this->repository->save($manga);
|
||||
|
||||
Reference in New Issue
Block a user