From 26aab3eef667e6e6ce53dd976795d959088f421d Mon Sep 17 00:00:00 2001 From: Timothy J Warren Date: Tue, 12 Sep 2017 12:33:57 -0400 Subject: [PATCH] Fix tests broken by api change fixes --- .../Kitsu/Transformer/AnimeTransformerTest.php | 2 -- .../AnimeTransformerTest__testTransform__1.php | 4 ---- tests/test_data/Kitsu/animeBeforeTransform.json | 16 ++++++++-------- 3 files changed, 8 insertions(+), 14 deletions(-) diff --git a/tests/API/Kitsu/Transformer/AnimeTransformerTest.php b/tests/API/Kitsu/Transformer/AnimeTransformerTest.php index d9b84a8e..04b74fda 100644 --- a/tests/API/Kitsu/Transformer/AnimeTransformerTest.php +++ b/tests/API/Kitsu/Transformer/AnimeTransformerTest.php @@ -40,9 +40,7 @@ class AnimeTransformerTest extends AnimeClientTestCase { public function testTransform() { - $expected = $this->afterTransform; $actual = $this->transformer->transform($this->beforeTransform); - $this->assertMatchesSnapshot($actual); } } \ No newline at end of file diff --git a/tests/API/Kitsu/Transformer/__snapshots__/AnimeTransformerTest__testTransform__1.php b/tests/API/Kitsu/Transformer/__snapshots__/AnimeTransformerTest__testTransform__1.php index 36bc8262..c4b32fd1 100644 --- a/tests/API/Kitsu/Transformer/__snapshots__/AnimeTransformerTest__testTransform__1.php +++ b/tests/API/Kitsu/Transformer/__snapshots__/AnimeTransformerTest__testTransform__1.php @@ -21,10 +21,6 @@ 'url' => 'https://kitsu.io/anime/attack-on-titan', 'genres' => array ( - 0 => 'Action', - 1 => 'Drama', - 2 => 'Fantasy', - 3 => 'Super Power', ), 'streaming_links' => array ( diff --git a/tests/test_data/Kitsu/animeBeforeTransform.json b/tests/test_data/Kitsu/animeBeforeTransform.json index e64bc419..4e240b34 100644 --- a/tests/test_data/Kitsu/animeBeforeTransform.json +++ b/tests/test_data/Kitsu/animeBeforeTransform.json @@ -65,9 +65,9 @@ "included": [ { "id": "23", - "type": "genres", + "type": "categories", "links": { - "self": "https:\/\/kitsu.io\/api\/edge\/genres\/23" + "self": "https:\/\/kitsu.io\/api\/edge\/categories\/23" }, "attributes": { "name": "Super Power", @@ -77,9 +77,9 @@ }, { "id": "11", - "type": "genres", + "type": "categories", "links": { - "self": "https:\/\/kitsu.io\/api\/edge\/genres\/11" + "self": "https:\/\/kitsu.io\/api\/edge\/categories\/11" }, "attributes": { "name": "Fantasy", @@ -89,9 +89,9 @@ }, { "id": "4", - "type": "genres", + "type": "categories", "links": { - "self": "https:\/\/kitsu.io\/api\/edge\/genres\/4" + "self": "https:\/\/kitsu.io\/api\/edge\/categories\/4" }, "attributes": { "name": "Drama", @@ -101,9 +101,9 @@ }, { "id": "1", - "type": "genres", + "type": "categories", "links": { - "self": "https:\/\/kitsu.io\/api\/edge\/genres\/1" + "self": "https:\/\/kitsu.io\/api\/edge\/categories\/1" }, "attributes": { "name": "Action",