Fix tests

This commit is contained in:
Timothy Warren 2018-09-27 16:48:12 -04:00
parent e3b4b9dd32
commit dde6c328f4
5 changed files with 22 additions and 22 deletions

View File

@ -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,

View File

@ -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(
Aviat\AnimeClient\Types\FormItemData::__set_state(array(
'notes' => 'Very formulaic.',
'private' => false,
'progress' => 38,

View File

@ -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(
Aviat\AnimeClient\Types\FormItemData::__set_state(array(
'notes' => 'Very formulaic.',
'private' => true,
'progress' => 38,

View File

@ -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(
Aviat\AnimeClient\Types\FormItemData::__set_state(array(
'notes' => '',
'private' => true,
'progress' => 12,

View File

@ -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,
)),
);