From ee24734ceead1f6edafba482130775e3f45c570f Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Mon, 11 Nov 2024 12:00:31 -0500 Subject: [PATCH] Make adjustment to test. --- tests/phpunit/tests/feed/fetchFeed.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/phpunit/tests/feed/fetchFeed.php b/tests/phpunit/tests/feed/fetchFeed.php index c410c7b955183..4a994726b13b8 100644 --- a/tests/phpunit/tests/feed/fetchFeed.php +++ b/tests/phpunit/tests/feed/fetchFeed.php @@ -23,6 +23,10 @@ public function test_empty_charset_does_not_trigger_fatal_error() { add_filter( 'pre_option_blog_charset', '__return_empty_string', 20 ); $feed = fetch_feed( 'https://wordpress.org/news/feed/' ); + + foreach( $feed->get_items( 0, 1 ) as $item ) { + $content = $item->get_content(); + } } public function mocked_rss_response() {