Skip to content

Commit bda320a

Browse files
Add test for feed_links_extra with custom post type
1 parent 8c5e9e0 commit bda320a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/phpunit/tests/general/feedLinksExtra.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,4 +645,19 @@ public function test_feed_links_extra_should_work_fail_if_global_post_empty() {
645645

646646
$this->assertNotEmpty( get_echo( 'feed_links_extra' ) );
647647
}
648+
649+
/**
650+
* @ticket 63263
651+
*/
652+
public function test_feed_links_extra_handles_custom_post_type() {
653+
$post_id = self::factory()->post->create(
654+
array(
655+
'post_type' => self::$post_with_cpt_id,
656+
'post_title' => 'Test post for custom post type feed links extra',
657+
)
658+
);
659+
660+
$this->go_to( get_permalink( $post_id ) );
661+
$this->assertNotEmpty( get_echo( 'feed_links_extra' ) );
662+
}
648663
}

0 commit comments

Comments
 (0)