feat: event listener sur MangaCreated pour ajouter les chapitres à la création

This commit is contained in:
ext.jeremy.guillot@maxicoffee.domains
2025-02-11 18:28:30 +01:00
parent 879b8fa2dc
commit 73774f84ff
10 changed files with 83 additions and 24 deletions

View File

@@ -46,15 +46,13 @@ class FetchMangaChaptersHandlerTest extends TestCase
$this->mangaRepository->save($manga);
$this->mangadexClient->setMangaFeed($externalId, [
'data' => [
[
'id' => 'chapter-1',
'attributes' => [
'chapter' => '1',
'title' => 'Chapter 1',
'volume' => '1'
]
$this->mangadexClient->addFeed($externalId, [
[
'id' => 'chapter-1',
'attributes' => [
'chapter' => '1',
'title' => 'Chapter 1',
'volume' => '1'
]
]
]);
@@ -75,4 +73,4 @@ class FetchMangaChaptersHandlerTest extends TestCase
$command = new FetchMangaChapters($externalId);
$this->handler->handle($command);
}
}
}