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() public function testTransform()
{ {
$expected = $this->afterTransform;
$actual = $this->transformer->transform($this->beforeTransform); $actual = $this->transformer->transform($this->beforeTransform);
$this->assertMatchesSnapshot($actual); $this->assertMatchesSnapshot($actual);
} }
} }

View File

@ -21,10 +21,6 @@
'url' => 'https://kitsu.io/anime/attack-on-titan', 'url' => 'https://kitsu.io/anime/attack-on-titan',
'genres' => 'genres' =>
array ( array (
0 => 'Action',
1 => 'Drama',
2 => 'Fantasy',
3 => 'Super Power',
), ),
'streaming_links' => 'streaming_links' =>
array ( array (

View File

@ -65,9 +65,9 @@
"included": [ "included": [
{ {
"id": "23", "id": "23",
"type": "genres", "type": "categories",
"links": { "links": {
"self": "https:\/\/kitsu.io\/api\/edge\/genres\/23" "self": "https:\/\/kitsu.io\/api\/edge\/categories\/23"
}, },
"attributes": { "attributes": {
"name": "Super Power", "name": "Super Power",
@ -77,9 +77,9 @@
}, },
{ {
"id": "11", "id": "11",
"type": "genres", "type": "categories",
"links": { "links": {
"self": "https:\/\/kitsu.io\/api\/edge\/genres\/11" "self": "https:\/\/kitsu.io\/api\/edge\/categories\/11"
}, },
"attributes": { "attributes": {
"name": "Fantasy", "name": "Fantasy",
@ -89,9 +89,9 @@
}, },
{ {
"id": "4", "id": "4",
"type": "genres", "type": "categories",
"links": { "links": {
"self": "https:\/\/kitsu.io\/api\/edge\/genres\/4" "self": "https:\/\/kitsu.io\/api\/edge\/categories\/4"
}, },
"attributes": { "attributes": {
"name": "Drama", "name": "Drama",
@ -101,9 +101,9 @@
}, },
{ {
"id": "1", "id": "1",
"type": "genres", "type": "categories",
"links": { "links": {
"self": "https:\/\/kitsu.io\/api\/edge\/genres\/1" "self": "https:\/\/kitsu.io\/api\/edge\/categories\/1"
}, },
"attributes": { "attributes": {
"name": "Action", "name": "Action",