From e2b4fae83b45798e30613b933ba4a58c6a75e24a Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Fri, 19 Oct 2018 10:39:38 -0400 Subject: [PATCH] Fix broken tests --- ...erTest__testUntransform with data set 0__1.php | 15 +++++++++++++++ ...erTest__testUntransform with data set 1__1.php | 15 +++++++++++++++ ...erTest__testUntransform with data set 2__1.php | 14 ++++++++++++++ tests/DispatcherTest.php | 2 ++ 4 files changed, 46 insertions(+) create mode 100644 tests/API/Kitsu/Transformer/__snapshots__/AnimeListTransformerTest__testUntransform with data set 0__1.php create mode 100644 tests/API/Kitsu/Transformer/__snapshots__/AnimeListTransformerTest__testUntransform with data set 1__1.php create mode 100644 tests/API/Kitsu/Transformer/__snapshots__/AnimeListTransformerTest__testUntransform with data set 2__1.php 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 new file mode 100644 index 00000000..f37516c9 --- /dev/null +++ b/tests/API/Kitsu/Transformer/__snapshots__/AnimeListTransformerTest__testUntransform with data set 0__1.php @@ -0,0 +1,15 @@ + 14047981, + 'anilist_item_id' => NULL, + 'mal_id' => NULL, + 'data' => + Aviat\AnimeClient\Types\FormItemData::__set_state(array( + 'notes' => 'Very formulaic.', + 'private' => false, + 'progress' => 38, + 'ratingTwenty' => 16, + 'reconsumeCount' => 0, + 'reconsuming' => false, + 'status' => 'current', + )), +)); 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 new file mode 100644 index 00000000..672b1d43 --- /dev/null +++ b/tests/API/Kitsu/Transformer/__snapshots__/AnimeListTransformerTest__testUntransform with data set 1__1.php @@ -0,0 +1,15 @@ + 14047981, + 'anilist_item_id' => NULL, + 'mal_id' => '12345', + 'data' => + Aviat\AnimeClient\Types\FormItemData::__set_state(array( + 'notes' => 'Very formulaic.', + 'private' => true, + 'progress' => 38, + 'ratingTwenty' => 16, + 'reconsumeCount' => 0, + 'reconsuming' => true, + 'status' => 'current', + )), +)); 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 new file mode 100644 index 00000000..e0e27ff4 --- /dev/null +++ b/tests/API/Kitsu/Transformer/__snapshots__/AnimeListTransformerTest__testUntransform with data set 2__1.php @@ -0,0 +1,14 @@ + 14047983, + 'anilist_item_id' => NULL, + 'mal_id' => '12347', + 'data' => + Aviat\AnimeClient\Types\FormItemData::__set_state(array( + 'notes' => '', + 'private' => true, + 'progress' => 12, + 'reconsumeCount' => 0, + 'reconsuming' => true, + 'status' => 'current', + )), +)); diff --git a/tests/DispatcherTest.php b/tests/DispatcherTest.php index 02b03c80..d658ffd1 100644 --- a/tests/DispatcherTest.php +++ b/tests/DispatcherTest.php @@ -218,6 +218,7 @@ class DispatcherTest extends AnimeClientTestCase { 'manga' => 'Aviat\AnimeClient\Controller\Manga', 'anime-collection' => 'Aviat\AnimeClient\Controller\AnimeCollection', 'manga-collection' => 'Aviat\AnimeClient\Controller\MangaCollection', + 'people' => 'Aviat\AnimeClient\Controller\People', 'character' => 'Aviat\AnimeClient\Controller\Character', 'index' => 'Aviat\AnimeClient\Controller\Index', ] @@ -238,6 +239,7 @@ class DispatcherTest extends AnimeClientTestCase { 'manga' => 'Aviat\AnimeClient\Controller\Manga', 'anime-collection' => 'Aviat\AnimeClient\Controller\AnimeCollection', 'manga-collection' => 'Aviat\AnimeClient\Controller\MangaCollection', + 'people' => 'Aviat\AnimeClient\Controller\People', 'character' => 'Aviat\AnimeClient\Controller\Character', 'index' => 'Aviat\AnimeClient\Controller\Index', ]