Skip to content

Commit efa3dfb

Browse files
committed
Fix sendHeaders test for environment-based pings filter
1 parent f63e409 commit efa3dfb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/phpunit/tests/wp/sendHeaders.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88
class Tests_WP_SendHeaders extends WP_UnitTestCase {
99
protected $headers_sent = array();
1010

11+
public function set_up() {
12+
parent::set_up();
13+
14+
// Remove the environment-based filter to test core behavior in isolation.
15+
remove_filter( 'pings_open', 'wp_disable_pings_open_for_environment' );
16+
}
17+
1118
/**
1219
* @ticket 56068
1320
*/

0 commit comments

Comments
 (0)