Skip to content

Commit 44bf1dd

Browse files
committed
Fix sendHeaders test for environment-based pings filter
1 parent 8a7bcdf commit 44bf1dd

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

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)