From 7ce1ba7f986d2cd4dbe4a51d98a464afed7be758 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 26 Jun 2020 12:07:52 +0000 Subject: [PATCH] Tests: Reformat `test_wp_list_pages_discarded_whitespace()` for better readability. See #50466, #49542. git-svn-id: https://develop.svn.wordpress.org/trunk@48176 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/post/listPages.php | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) 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 ) ); }