diff --git a/tests/phpunit/tests/user/listAuthors.php b/tests/phpunit/tests/user/listAuthors.php
index 030d5f55f8..1f907fb778 100644
--- a/tests/phpunit/tests/user/listAuthors.php
+++ b/tests/phpunit/tests/user/listAuthors.php
@@ -83,12 +83,18 @@ class Tests_User_ListAuthors extends WP_UnitTestCase {
}
function test_wp_list_authors_feed() {
- $expected['feed'] = '
bob (link to feed)paul (link to feed)zack (link to feed)';
+ $url0 = get_author_feed_link( $this->users[0] );
+ $url1 = get_author_feed_link( $this->users[1] );
+ $url2 = get_author_feed_link( $this->users[2] );
+ $expected['feed'] = 'bob (link to feed)paul (link to feed)zack (link to feed)';
$this->AssertEquals( $expected['feed'], wp_list_authors( array( 'echo' => false, 'feed' => 'link to feed' ) ) );
}
function test_wp_list_authors_feed_image() {
- $expected['feed_image'] = 'bob paul zack ';
+ $url0 = get_author_feed_link( $this->users[0] );
+ $url1 = get_author_feed_link( $this->users[1] );
+ $url2 = get_author_feed_link( $this->users[2] );
+ $expected['feed_image'] = 'bob paul zack ';
$this->AssertEquals( $expected['feed_image'], wp_list_authors( array( 'echo' => false, 'feed_image' => WP_TESTS_DOMAIN . '/path/to/a/graphic.png' ) ) );
}
@@ -96,7 +102,10 @@ class Tests_User_ListAuthors extends WP_UnitTestCase {
* @ticket 26538
*/
function test_wp_list_authors_feed_type() {
- $expected['feed_type'] = 'bob (link to feed)paul (link to feed)zack (link to feed)';
+ $url0 = get_author_feed_link( $this->users[0], 'atom' );
+ $url1 = get_author_feed_link( $this->users[1], 'atom' );
+ $url2 = get_author_feed_link( $this->users[2], 'atom' );
+ $expected['feed_type'] = 'bob (link to feed)paul (link to feed)zack (link to feed)';
$this->AssertEquals( $expected['feed_type'], wp_list_authors( array( 'echo' => false, 'feed' => 'link to feed', 'feed_type' => 'atom' ) ) );
}