Skip to content

Commit f22ba8e

Browse files
Reset global post variable in feedLinksExtra test
Set global post variable to null before testing feed links extra.
1 parent bda320a commit f22ba8e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/phpunit/tests/general/feedLinksExtra.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,7 @@ public function test_feed_links_extra_handles_custom_post_type() {
656656
'post_title' => 'Test post for custom post type feed links extra',
657657
)
658658
);
659+
$GLOBALS['post'] = null;
659660

660661
$this->go_to( get_permalink( $post_id ) );
661662
$this->assertNotEmpty( get_echo( 'feed_links_extra' ) );

0 commit comments

Comments
 (0)