From af437fcdc4c8de1a690b70539826afe3c8d65737 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 5 Sep 2020 16:47:50 +0000 Subject: [PATCH] Tests: Replace a few more instances of `assertEquals()` with `assertSame()`. These were previously missed due to incorrect capitalization. Follow-up to [48937], [48939], [48940]. See #38266. git-svn-id: https://develop.svn.wordpress.org/trunk@48944 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/user/listAuthors.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/phpunit/tests/user/listAuthors.php b/tests/phpunit/tests/user/listAuthors.php index ccaa733551..8908b39d0b 100644 --- a/tests/phpunit/tests/user/listAuthors.php +++ b/tests/phpunit/tests/user/listAuthors.php @@ -80,7 +80,7 @@ class Tests_User_ListAuthors extends WP_UnitTestCase { '
  • paul
  • ' . '
  • zack
  • '; - $this->AssertEquals( $expected['default'], wp_list_authors( array( 'echo' => false ) ) ); + $this->assertSame( $expected['default'], wp_list_authors( array( 'echo' => false ) ) ); } function test_wp_list_authors_orderby() { @@ -89,7 +89,7 @@ class Tests_User_ListAuthors extends WP_UnitTestCase { '
  • bob
  • ' . '
  • paul
  • '; - $this->AssertEquals( + $this->assertSame( $expected['post_count'], wp_list_authors( array( @@ -106,7 +106,7 @@ class Tests_User_ListAuthors extends WP_UnitTestCase { '
  • bob
  • ' . '
  • zack
  • '; - $this->AssertEquals( + $this->assertSame( $expected['id'], wp_list_authors( array( @@ -124,7 +124,7 @@ class Tests_User_ListAuthors extends WP_UnitTestCase { '
  • paul (3)
  • ' . '
  • zack (1)
  • '; - $this->AssertEquals( + $this->assertSame( $expected['optioncount'], wp_list_authors( array( @@ -149,7 +149,7 @@ class Tests_User_ListAuthors extends WP_UnitTestCase { '
  • paul
  • ' . '
  • zack
  • '; - $this->AssertEquals( + $this->assertSame( $expected['exclude_admin'], wp_list_authors( array( @@ -166,7 +166,7 @@ class Tests_User_ListAuthors extends WP_UnitTestCase { '
  • paul norris
  • ' . '
  • zack moon
  • '; - $this->AssertEquals( + $this->assertSame( $expected['show_fullname'], wp_list_authors( array( @@ -186,7 +186,7 @@ class Tests_User_ListAuthors extends WP_UnitTestCase { '
  • paul
  • ' . '
  • zack
  • '; - $this->AssertEquals( + $this->assertSame( $expected['hide_empty'], wp_list_authors( array( @@ -217,7 +217,7 @@ class Tests_User_ListAuthors extends WP_UnitTestCase { '
  • paul (link to feed)
  • ' . '
  • zack (link to feed)
  • '; - $this->AssertEquals( + $this->assertSame( $expected['feed'], wp_list_authors( array( @@ -238,7 +238,7 @@ class Tests_User_ListAuthors extends WP_UnitTestCase { '
  • paul
  • ' . '
  • zack
  • '; - $this->AssertEquals( + $this->assertSame( $expected['feed_image'], wp_list_authors( array( @@ -262,7 +262,7 @@ class Tests_User_ListAuthors extends WP_UnitTestCase { '
  • paul (link to feed)
  • ' . '
  • zack (link to feed)
  • '; - $this->AssertEquals( + $this->assertSame( $expected['feed_type'], wp_list_authors( array( @@ -280,7 +280,7 @@ class Tests_User_ListAuthors extends WP_UnitTestCase { 'paul, ' . 'zack'; - $this->AssertEquals( + $this->assertSame( $expected['style'], wp_list_authors( array( @@ -294,7 +294,7 @@ class Tests_User_ListAuthors extends WP_UnitTestCase { function test_wp_list_authors_html() { $expected['html'] = 'bob, paul, zack'; - $this->AssertEquals( + $this->assertSame( $expected['html'], wp_list_authors( array(