Skip to content

Commit f2b6da4

Browse files
Tests: Change export_wp filter callback to static function
1 parent b330e88 commit f2b6da4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/phpunit/tests/admin/exportWp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ public function test_export_wp_should_not_include_empty_comments_when_filtered()
302302
// Add filter to make get_comment return null.
303303
add_action(
304304
'export_wp',
305-
function () {
305+
static function () {
306306
add_filter( 'get_comment', '__return_null' );
307307
}
308308
);

0 commit comments

Comments
 (0)