Fix tests broken by api change fixes

This commit is contained in:
Timothy Warren 2017-09-12 12:33:57 -04:00
parent 372b616101
commit 3c4e34f1ed
3 changed files with 8 additions and 14 deletions

View File

@ -40,9 +40,7 @@ class AnimeTransformerTest extends AnimeClientTestCase {
public function testTransform()
{
$expected = $this->afterTransform;
$actual = $this->transformer->transform($this->beforeTransform);
$this->assertMatchesSnapshot($actual);
}
}

View File

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

View File

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