Skip to content

Commit 6e82432

Browse files
Tests: Make get_comment filter return null
1 parent aae9348 commit 6e82432

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/phpunit/tests/admin/exportWp.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,11 +299,11 @@ public function test_export_wp_should_not_include_empty_comments_when_filtered()
299299
$post_id = self::factory()->post->create( array( 'post_title' => 'Test Post' ) );
300300
self::factory()->comment->create_post_comments( $post_id, 3 );
301301

302-
// Add filter to make get_comment return false.
302+
// Add filter to make get_comment return null.
303303
add_action(
304304
'export_wp',
305305
function () {
306-
add_filter( 'get_comment', '__return_false' );
306+
add_filter( 'get_comment', '__return_null' );
307307
}
308308
);
309309

0 commit comments

Comments
 (0)