Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix post global variable assignment in test
  • Loading branch information
mukeshpanchal27 authored Oct 24, 2025
commit e6d320c1bd45ac0b8c7a46861aca356f745a7517
2 changes: 1 addition & 1 deletion tests/phpunit/tests/general/feedLinksExtra.php
Original file line number Diff line number Diff line change
Expand Up @@ -656,9 +656,9 @@ public function test_feed_links_extra_handles_custom_post_type() {
'post_title' => 'Test post for custom post type feed links extra',
)
);
$GLOBALS['post'] = null;

$this->go_to( get_permalink( $post_id ) );
$GLOBALS['post'] = null;
$this->assertNotEmpty( get_echo( 'feed_links_extra' ) );
}
}
Loading