feat: event listener sur MangaCreated pour ajouter les chapitres à la création
This commit is contained in:
parent
879b8fa2dc
commit
73774f84ff
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user