Fix tests
This commit is contained in:
parent
0f31a5e10a
commit
6f717e6ab7
@ -20,8 +20,8 @@ use Aviat\AnimeClient\API\JsonAPI;
|
||||
use Aviat\AnimeClient\API\Kitsu\Transformer\MangaListTransformer;
|
||||
use Aviat\AnimeClient\Tests\AnimeClientTestCase;
|
||||
use Aviat\AnimeClient\Types\{
|
||||
MangaFormItem,
|
||||
MangaFormItemData
|
||||
FormItem,
|
||||
FormItemData
|
||||
};
|
||||
use Aviat\Ion\Json;
|
||||
|
||||
@ -86,10 +86,10 @@ class MangaListTransformerTest extends AnimeClientTestCase {
|
||||
];
|
||||
|
||||
$actual = $this->transformer->untransform($input);
|
||||
$expected = new MangaFormItem([
|
||||
$expected = new FormItem([
|
||||
'id' => '15084773',
|
||||
'mal_id' => '26769',
|
||||
'data' => new MangaFormItemData([
|
||||
'data' => new FormItemData([
|
||||
'status' => 'current',
|
||||
'progress' => 67,
|
||||
'reconsuming' => false,
|
||||
|
@ -1,9 +1,9 @@
|
||||
<?php return Aviat\AnimeClient\Types\AnimeFormItem::__set_state(array(
|
||||
<?php return Aviat\AnimeClient\Types\FormItem::__set_state(array(
|
||||
'id' => 14047981,
|
||||
'anilist_item_id' => NULL,
|
||||
'mal_id' => NULL,
|
||||
'data' =>
|
||||
Aviat\AnimeClient\Types\AnimeFormItemData::__set_state(array(
|
||||
'data' =>
|
||||
Aviat\AnimeClient\Types\FormItemData::__set_state(array(
|
||||
'notes' => 'Very formulaic.',
|
||||
'private' => false,
|
||||
'progress' => 38,
|
||||
|
@ -1,9 +1,9 @@
|
||||
<?php return Aviat\AnimeClient\Types\AnimeFormItem::__set_state(array(
|
||||
<?php return Aviat\AnimeClient\Types\FormItem::__set_state(array(
|
||||
'id' => 14047981,
|
||||
'anilist_item_id' => NULL,
|
||||
'mal_id' => '12345',
|
||||
'data' =>
|
||||
Aviat\AnimeClient\Types\AnimeFormItemData::__set_state(array(
|
||||
'data' =>
|
||||
Aviat\AnimeClient\Types\FormItemData::__set_state(array(
|
||||
'notes' => 'Very formulaic.',
|
||||
'private' => true,
|
||||
'progress' => 38,
|
||||
|
@ -1,9 +1,9 @@
|
||||
<?php return Aviat\AnimeClient\Types\AnimeFormItem::__set_state(array(
|
||||
<?php return Aviat\AnimeClient\Types\FormItem::__set_state(array(
|
||||
'id' => 14047983,
|
||||
'anilist_item_id' => NULL,
|
||||
'mal_id' => '12347',
|
||||
'data' =>
|
||||
Aviat\AnimeClient\Types\AnimeFormItemData::__set_state(array(
|
||||
'data' =>
|
||||
Aviat\AnimeClient\Types\FormItemData::__set_state(array(
|
||||
'notes' => '',
|
||||
'private' => true,
|
||||
'progress' => 12,
|
||||
|
@ -30,14 +30,14 @@
|
||||
'titles' =>
|
||||
array (
|
||||
),
|
||||
'type' => 'manga',
|
||||
'type' => 'Manga',
|
||||
'url' => 'https://kitsu.io/manga/bokura-wa-minna-kawaisou',
|
||||
)),
|
||||
'reading_status' => 'current',
|
||||
'notes' => '',
|
||||
'rereading' => false,
|
||||
'reread' => 0,
|
||||
'user_rating' => 9.0,
|
||||
'user_rating' => 9,
|
||||
)),
|
||||
1 =>
|
||||
Aviat\AnimeClient\Types\MangaListItem::__set_state(array(
|
||||
@ -70,14 +70,14 @@
|
||||
'titles' =>
|
||||
array (
|
||||
),
|
||||
'type' => 'manga',
|
||||
'type' => 'Manga',
|
||||
'url' => 'https://kitsu.io/manga/love-hina',
|
||||
)),
|
||||
'reading_status' => 'current',
|
||||
'notes' => '',
|
||||
'rereading' => false,
|
||||
'reread' => 0,
|
||||
'user_rating' => 7.0,
|
||||
'user_rating' => 7,
|
||||
)),
|
||||
2 =>
|
||||
Aviat\AnimeClient\Types\MangaListItem::__set_state(array(
|
||||
@ -113,14 +113,14 @@
|
||||
array (
|
||||
0 => 'Yamada-kun and the Seven Witches',
|
||||
),
|
||||
'type' => 'manga',
|
||||
'type' => 'Manga',
|
||||
'url' => 'https://kitsu.io/manga/yamada-kun-to-7-nin-no-majo',
|
||||
)),
|
||||
'reading_status' => 'current',
|
||||
'notes' => '',
|
||||
'rereading' => false,
|
||||
'reread' => 0,
|
||||
'user_rating' => 9.0,
|
||||
'user_rating' => 9,
|
||||
)),
|
||||
3 =>
|
||||
Aviat\AnimeClient\Types\MangaListItem::__set_state(array(
|
||||
@ -151,7 +151,7 @@
|
||||
'titles' =>
|
||||
array (
|
||||
),
|
||||
'type' => 'manga',
|
||||
'type' => 'Manga',
|
||||
'url' => 'https://kitsu.io/manga/relife',
|
||||
)),
|
||||
'reading_status' => 'current',
|
||||
@ -189,13 +189,13 @@
|
||||
'titles' =>
|
||||
array (
|
||||
),
|
||||
'type' => 'manga',
|
||||
'type' => 'Manga',
|
||||
'url' => 'https://kitsu.io/manga/joshikausei',
|
||||
)),
|
||||
'reading_status' => 'current',
|
||||
'notes' => '',
|
||||
'rereading' => false,
|
||||
'reread' => 0,
|
||||
'user_rating' => 8.0,
|
||||
'user_rating' => 8,
|
||||
)),
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user