@@ -32,7 +32,7 @@ class ParsingTest extends \Art4\JsonApiClient\Tests\Fixtures\TestCase
3232 public function testParseSimpleResource ()
3333 {
3434 $ string = $ this ->getJsonString ('01_simple_resource.json ' );
35- $ document = Helper::parse ($ string );
35+ $ document = Helper::parseResponseBody ($ string );
3636
3737 $ this ->assertInstanceOf ('Art4\JsonApiClient\Document ' , $ document );
3838 $ this ->assertFalse ($ document ->has ('errors ' ));
@@ -63,7 +63,7 @@ public function testParseSimpleResource()
6363 public function testParseSimpleResourceIdentifier ()
6464 {
6565 $ string = $ this ->getJsonString ('02_simple_resource_identifier.json ' );
66- $ document = Helper::parse ($ string );
66+ $ document = Helper::parseResponseBody ($ string );
6767
6868 $ this ->assertInstanceOf ('Art4\JsonApiClient\Document ' , $ document );
6969 $ this ->assertFalse ($ document ->has ('errors ' ));
@@ -90,7 +90,7 @@ public function testParseSimpleResourceIdentifier()
9090 public function testParseResourceObject ()
9191 {
9292 $ string = $ this ->getJsonString ('03_resource_object.json ' );
93- $ document = Helper::parse ($ string );
93+ $ document = Helper::parseResponseBody ($ string );
9494
9595 $ this ->assertInstanceOf ('Art4\JsonApiClient\Document ' , $ document );
9696 $ this ->assertFalse ($ document ->has ('errors ' ));
@@ -161,7 +161,7 @@ public function testParseResourceObject()
161161 public function testParseCompleteResourceObjectWithMultipleRelationships ()
162162 {
163163 $ string = $ this ->getJsonString ('04_complete_document_with_multiple_relationships.json ' );
164- $ document = Helper::parse ($ string );
164+ $ document = Helper::parseResponseBody ($ string );
165165
166166 $ this ->assertInstanceOf ('Art4\JsonApiClient\Document ' , $ document );
167167 $ this ->assertFalse ($ document ->has ('errors ' ));
@@ -339,7 +339,7 @@ public function testParseCompleteResourceObjectWithMultipleRelationships()
339339 public function testParsePaginationExample ()
340340 {
341341 $ string = $ this ->getJsonString ('06_pagination_example.json ' );
342- $ document = Helper::parse ($ string );
342+ $ document = Helper::parseResponseBody ($ string );
343343
344344 $ this ->assertInstanceOf ('Art4\JsonApiClient\Document ' , $ document );
345345 $ this ->assertTrue ($ document ->has ('data ' ));
@@ -396,7 +396,7 @@ public function testParsePaginationExample()
396396 public function testParseRelationshipExample ()
397397 {
398398 $ string = $ this ->getJsonString ('07_relationship_example_without_data.json ' );
399- $ document = Helper::parse ($ string );
399+ $ document = Helper::parseResponseBody ($ string );
400400
401401 $ this ->assertInstanceOf ('Art4\JsonApiClient\Document ' , $ document );
402402 $ this ->assertTrue ($ document ->has ('data ' ));
@@ -465,7 +465,7 @@ public function testParseRelationshipExample()
465465 public function testParseObjectLinksExample ()
466466 {
467467 $ string = $ this ->getJsonString ('08_object_links.json ' );
468- $ document = Helper::parse ($ string );
468+ $ document = Helper::parseResponseBody ($ string );
469469
470470 $ this ->assertInstanceOf ('Art4\JsonApiClient\Document ' , $ document );
471471 $ this ->assertTrue ($ document ->has ('links ' ));
@@ -511,7 +511,7 @@ public function testParseObjectLinksExample()
511511 public function testParseResourceIdentifierWithMeta ()
512512 {
513513 $ string = $ this ->getJsonString ('11_resource_identifier_with_meta.json ' );
514- $ document = Helper::parse ($ string );
514+ $ document = Helper::parseResponseBody ($ string );
515515
516516 $ this ->assertInstanceOf ('Art4\JsonApiClient\Document ' , $ document );
517517 $ this ->assertFalse ($ document ->has ('errors ' ));
@@ -540,7 +540,7 @@ public function testParseResourceIdentifierWithMeta()
540540 public function testParseNullResource ()
541541 {
542542 $ string = $ this ->getJsonString ('12_null_resource.json ' );
543- $ document = Helper::parse ($ string );
543+ $ document = Helper::parseResponseBody ($ string );
544544
545545 $ this ->assertInstanceOf ('Art4\JsonApiClient\Document ' , $ document );
546546 $ this ->assertFalse ($ document ->has ('errors ' ));
@@ -564,7 +564,7 @@ public function testParseNullResource()
564564 public function testParseResourceIdentifierCollectionWithMeta ()
565565 {
566566 $ string = $ this ->getJsonString ('13_collection_with_resource_identifier_with_meta.json ' );
567- $ document = Helper::parse ($ string );
567+ $ document = Helper::parseResponseBody ($ string );
568568
569569 $ this ->assertInstanceOf ('Art4\JsonApiClient\Document ' , $ document );
570570 $ this ->assertFalse ($ document ->has ('errors ' ));
0 commit comments