From 9e7684043e13dae478172973fddda01b699f89e7 Mon Sep 17 00:00:00 2001 From: Ben XO <75862+ben-xo@users.noreply.github.com> Date: Thu, 5 Jan 2023 22:50:49 +0000 Subject: [PATCH] Fix positions in test --- test/MixedMediaExampleWithExtraFilesTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/MixedMediaExampleWithExtraFilesTest.php b/test/MixedMediaExampleWithExtraFilesTest.php index 810ba5b..330a87f 100644 --- a/test/MixedMediaExampleWithExtraFilesTest.php +++ b/test/MixedMediaExampleWithExtraFilesTest.php @@ -67,15 +67,15 @@ public function test_podcast_has_expected_overrideable_fields() { $data = simplexml_load_string(file_get_contents(self::$file)); - $this->assertEquals('https://www.example.com/podcast/4.png', $data->channel->item[1]->image); - $this->assertEquals('https://www.example.com/podcast/3.jpg', $data->channel->item[2]->image); + $this->assertEquals('https://www.example.com/podcast/4.png', $data->channel->item[2]->image); + $this->assertEquals('https://www.example.com/podcast/3.jpg', $data->channel->item[3]->image); $itdtd = "http://www.itunes.com/dtds/podcast-1.0.dtd"; - $this->assertEquals('New, Improved Summary', $data->channel->item[4]->children($itdtd)->summary); - $this->assertEquals('Return Of The Episode', $data->channel->item[3]->children($itdtd)->subtitle); - $this->assertEquals('https://www.example.com/podcast/4.png', $data->channel->item[1]->children($itdtd)->image->attributes()->href); - $this->assertEquals('https://www.example.com/podcast/3.jpg', $data->channel->item[2]->children($itdtd)->image->attributes()->href); + $this->assertEquals('New, Improved Summary', $data->channel->item[5]->children($itdtd)->summary); + $this->assertEquals('Return Of The Episode', $data->channel->item[4]->children($itdtd)->subtitle); + $this->assertEquals('https://www.example.com/podcast/4.png', $data->channel->item[2]->children($itdtd)->image->attributes()->href); + $this->assertEquals('https://www.example.com/podcast/3.jpg', $data->channel->item[3]->children($itdtd)->image->attributes()->href); }