From a80593e1ac6fc79c3d78ea2d736c89955e6b6805 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Thu, 19 May 2022 22:50:30 +0200 Subject: [PATCH] Update the tests --- tests/Feature/Services/RssFeedServiceTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Feature/Services/RssFeedServiceTest.php b/tests/Feature/Services/RssFeedServiceTest.php index 860232bf..70f6f6c3 100644 --- a/tests/Feature/Services/RssFeedServiceTest.php +++ b/tests/Feature/Services/RssFeedServiceTest.php @@ -99,7 +99,7 @@ public function test_markdown_blog_posts_are_added_to_rss_feed_through_autodisco config(['hyde.site_url' => 'https://example.com']); - file_put_contents(Hyde::path('rss-test.jpg'), 'statData'); // 8 bytes to test stat gets file length + file_put_contents(Hyde::path('_media/rss-test.jpg'), 'statData'); // 8 bytes to test stat gets file length $service = new RssFeedService(); $service->generate(); @@ -114,12 +114,12 @@ public function test_markdown_blog_posts_are_added_to_rss_feed_through_autodisco $this->assertEquals('test', $item->category); $this->assertObjectHasAttribute('enclosure', $item); - $this->assertEquals('https://example.com/rss-test.jpg', $item->enclosure->attributes()->url); + $this->assertEquals('https://example.com/media/rss-test.jpg', $item->enclosure->attributes()->url); $this->assertEquals('image/jpeg', $item->enclosure->attributes()->type); $this->assertEquals('8', $item->enclosure->attributes()->length); unlink(Hyde::path('_posts/rss.md')); - unlink(Hyde::path('rss-test.jpg')); + unlink(Hyde::path('_media/rss-test.jpg')); } // Test getXML method returns XML string