From 155f44a42486f8ae5a1b98f8ef23e50885770c4b Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Wed, 21 Oct 2020 17:07:50 -0400 Subject: [PATCH] Remove test for JsonAPI nonsense --- tests/AnimeClient/API/JsonAPITest.php | 55 --------------------------- 1 file changed, 55 deletions(-) delete mode 100644 tests/AnimeClient/API/JsonAPITest.php diff --git a/tests/AnimeClient/API/JsonAPITest.php b/tests/AnimeClient/API/JsonAPITest.php deleted file mode 100644 index c26fe881..00000000 --- a/tests/AnimeClient/API/JsonAPITest.php +++ /dev/null @@ -1,55 +0,0 @@ - - * @copyright 2015 - 2020 Timothy J. Warren - * @license http://www.opensource.org/licenses/mit-license.html MIT License - * @version 5.1 - * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient - */ - -namespace Aviat\AnimeClient\Tests\API; - -use Aviat\AnimeClient\API\JsonAPI; -use Aviat\Ion\Json; -use PHPUnit\Framework\TestCase; - -class JsonAPITest extends TestCase { - - protected $startData; - protected $organizedIncludes; - protected $inlineIncluded; - - public function setUp(): void { - $dir = __DIR__ . '/../test_data/JsonAPI'; - $this->startData = Json::decodeFile("{$dir}/jsonApiExample.json"); - $this->organizedIncludes = Json::decodeFile("{$dir}/organizedIncludes.json"); - $this->inlineIncluded = Json::decodeFile("{$dir}/inlineIncluded.json"); - } - - public function testOrganizeIncludes() - { - $expected = $this->organizedIncludes; - $actual = JsonAPI::organizeIncludes($this->startData['included']); - - // file_put_contents(__DIR__ . '/../test_data/JsonAPI/organizedIncludes.json', json_Encode($actual)); - - $this->assertEquals($expected, $actual); - } - - public function testInlineIncludedRelationships() - { - $expected = $this->inlineIncluded; - $actual = JsonAPI::inlineIncludedRelationships($this->organizedIncludes, 'anime'); - - // file_put_contents(__DIR__ . '/../test_data/JsonAPI/inlineIncluded.json', json_Encode($actual)); - - $this->assertEquals($expected, $actual); - } -} \ No newline at end of file