From dde6c328f42286590615e343196393441555b392 Mon Sep 17 00:00:00 2001 From: Timothy J Warren Date: Thu, 27 Sep 2018 16:48:12 -0400 Subject: [PATCH] Fix tests --- .../Transformer/MangaListTransformerTest.php | 8 ++++---- ...st__testUntransform with data set #0__1.php | 6 +++--- ...st__testUntransform with data set #1__1.php | 6 +++--- ...st__testUntransform with data set #2__1.php | 6 +++--- ...gaListTransformerTest__testTransform__1.php | 18 +++++++++--------- 5 files changed, 22 insertions(+), 22 deletions(-) diff --git a/tests/API/Kitsu/Transformer/MangaListTransformerTest.php b/tests/API/Kitsu/Transformer/MangaListTransformerTest.php index 30d677bd..0397f363 100644 --- a/tests/API/Kitsu/Transformer/MangaListTransformerTest.php +++ b/tests/API/Kitsu/Transformer/MangaListTransformerTest.php @@ -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, diff --git a/tests/API/Kitsu/Transformer/__snapshots__/AnimeListTransformerTest__testUntransform with data set #0__1.php b/tests/API/Kitsu/Transformer/__snapshots__/AnimeListTransformerTest__testUntransform with data set #0__1.php index 265ad7e3..4b97af5e 100644 --- a/tests/API/Kitsu/Transformer/__snapshots__/AnimeListTransformerTest__testUntransform with data set #0__1.php +++ b/tests/API/Kitsu/Transformer/__snapshots__/AnimeListTransformerTest__testUntransform with data set #0__1.php @@ -1,9 +1,9 @@ - 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, diff --git a/tests/API/Kitsu/Transformer/__snapshots__/AnimeListTransformerTest__testUntransform with data set #1__1.php b/tests/API/Kitsu/Transformer/__snapshots__/AnimeListTransformerTest__testUntransform with data set #1__1.php index 32a01994..ca751d41 100644 --- a/tests/API/Kitsu/Transformer/__snapshots__/AnimeListTransformerTest__testUntransform with data set #1__1.php +++ b/tests/API/Kitsu/Transformer/__snapshots__/AnimeListTransformerTest__testUntransform with data set #1__1.php @@ -1,9 +1,9 @@ - 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, diff --git a/tests/API/Kitsu/Transformer/__snapshots__/AnimeListTransformerTest__testUntransform with data set #2__1.php b/tests/API/Kitsu/Transformer/__snapshots__/AnimeListTransformerTest__testUntransform with data set #2__1.php index c3634ed2..9375de10 100644 --- a/tests/API/Kitsu/Transformer/__snapshots__/AnimeListTransformerTest__testUntransform with data set #2__1.php +++ b/tests/API/Kitsu/Transformer/__snapshots__/AnimeListTransformerTest__testUntransform with data set #2__1.php @@ -1,9 +1,9 @@ - 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, diff --git a/tests/API/Kitsu/Transformer/__snapshots__/MangaListTransformerTest__testTransform__1.php b/tests/API/Kitsu/Transformer/__snapshots__/MangaListTransformerTest__testTransform__1.php index 1757e57c..8d1c950f 100644 --- a/tests/API/Kitsu/Transformer/__snapshots__/MangaListTransformerTest__testTransform__1.php +++ b/tests/API/Kitsu/Transformer/__snapshots__/MangaListTransformerTest__testTransform__1.php @@ -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, )), );