diff --git a/tests/phpunit/tests/user/listAuthors.php b/tests/phpunit/tests/user/listAuthors.php index 1f907fb778..21282e9bf8 100644 --- a/tests/phpunit/tests/user/listAuthors.php +++ b/tests/phpunit/tests/user/listAuthors.php @@ -28,7 +28,7 @@ class Tests_User_ListAuthors extends WP_UnitTestCase { $this->users[] = $this->factory->user->create( array( 'user_login' => 'paul', 'display_name' => 'paul', 'role' => 'author', 'first_name' => 'paul', 'last_name' => 'norris' ) ); $count = 0; foreach ( $this->users as $userid ) { - $count = $count + 5; + $count = $count + 1; for ( $i = 0; $i < $count; $i++ ) { $this->factory->post->create( array( 'post_type' => 'post', 'post_author' => $userid ) ); } @@ -53,7 +53,7 @@ class Tests_User_ListAuthors extends WP_UnitTestCase { } function test_wp_list_authors_optioncount() { - $expected['optioncount'] = '