From 276fa7cd092a4d1288bc4d9b28e2dd82568f342a Mon Sep 17 00:00:00 2001 From: Jeremy Felt Date: Sat, 12 Sep 2015 23:30:11 +0000 Subject: [PATCH] Tests: Update `Tests_Feed_RSS::test_items` to expect new comment permalink structure. Introduced in [34075] for posts without comments. Props netweb. Fixes #19893. git-svn-id: https://develop.svn.wordpress.org/trunk@34092 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/feed/rss2.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/feed/rss2.php b/tests/phpunit/tests/feed/rss2.php index f8cd9cfca8..73b224e71e 100644 --- a/tests/phpunit/tests/feed/rss2.php +++ b/tests/phpunit/tests/feed/rss2.php @@ -146,7 +146,7 @@ class Tests_Feed_RSS2 extends WP_UnitTestCase { // comment link $comments_link = xml_find( $items[$key]['child'], 'comments' ); - $this->assertEquals( get_permalink( $post) . '#comments', $comments_link[0]['content'] ); + $this->assertEquals( get_permalink( $post) . '#respond', $comments_link[0]['content'] ); // pub date $pubdate = xml_find( $items[$key]['child'], 'pubDate' );