diff --git a/tests/phpunit/tests/post/listPages.php b/tests/phpunit/tests/post/listPages.php index 29d54f2f34..739d2a3582 100644 --- a/tests/phpunit/tests/post/listPages.php +++ b/tests/phpunit/tests/post/listPages.php @@ -441,7 +441,26 @@ class Tests_List_Pages extends WP_UnitTestCase { 'item_spacing' => 'discard', ); - $expected = ''; + $expected = ''; + $expected = str_replace( array( "\r\n", "\n", "\t" ), '', $expected ); $this->assertEquals( $expected, wp_list_pages( $args ) ); }