diff --git a/tests/phpunit/tests/post/listPages.php b/tests/phpunit/tests/post/listPages.php
index 86805a226e..f5bee299a3 100644
--- a/tests/phpunit/tests/post/listPages.php
+++ b/tests/phpunit/tests/post/listPages.php
@@ -296,11 +296,12 @@ class Tests_List_Pages extends WP_UnitTestCase {
function test_wp_list_pages_number() {
$args = array(
- 'echo' => false,
- 'number' => 1,
+ 'echo' => false,
+ 'number' => 1,
+ 'sort_column' => 'ID',
);
- $expected = '
Pages- Child 1
+ $expected = '- Pages
';
$this->assertEqualsIgnoreEOL( $expected, wp_list_pages( $args ) );
@@ -309,31 +310,14 @@ class Tests_List_Pages extends WP_UnitTestCase {
function test_wp_list_pages_sort_column() {
$args = array(
'echo' => false,
+ 'depth' => 1,
'sort_column' => 'post_author',
'sort_order' => 'DESC',
);
- $expected = '- Pages
- Parent 3
-
-
-- Parent 1
-
-
-- Parent 2
-
-
+ $expected = '- Pages
';
$this->assertEqualsIgnoreEOL( $expected, wp_list_pages( $args ) );