WordPress.org

Make WordPress Core

Changeset 48944


Ignore:
Timestamp:
09/05/2020 04:47:50 PM (15 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/user/listAuthors.php

    r46586 r48944  
    8181            '<li><a href="' . self::$user_urls[0] . '" title="Posts by zack">zack</a></li>';
    8282
    83         $this->AssertEquals( $expected['default'], wp_list_authors( array( 'echo' => false ) ) );
     83        $this->assertSame( $expected['default'], wp_list_authors( array( 'echo' => false ) ) );
    8484    }
    8585
     
    9090            '<li><a href="' . self::$user_urls[2] . '" title="Posts by paul">paul</a></li>';
    9191
    92         $this->AssertEquals(
     92        $this->assertSame(
    9393            $expected['post_count'],
    9494            wp_list_authors(
     
    107107            '<li><a href="' . self::$user_urls[0] . '" title="Posts by zack">zack</a></li>';
    108108
    109         $this->AssertEquals(
     109        $this->assertSame(
    110110            $expected['id'],
    111111            wp_list_authors(
     
    125125            '<li><a href="' . self::$user_urls[0] . '" title="Posts by zack">zack</a> (1)</li>';
    126126
    127         $this->AssertEquals(
     127        $this->assertSame(
    128128            $expected['optioncount'],
    129129            wp_list_authors(
     
    150150            '<li><a href="' . self::$user_urls[0] . '" title="Posts by zack">zack</a></li>';
    151151
    152         $this->AssertEquals(
     152        $this->assertSame(
    153153            $expected['exclude_admin'],
    154154            wp_list_authors(
     
    167167            '<li><a href="' . self::$user_urls[0] . '" title="Posts by zack">zack moon</a></li>';
    168168
    169         $this->AssertEquals(
     169        $this->assertSame(
    170170            $expected['show_fullname'],
    171171            wp_list_authors(
     
    187187            '<li><a href="' . self::$user_urls[0] . '" title="Posts by zack">zack</a></li>';
    188188
    189         $this->AssertEquals(
     189        $this->assertSame(
    190190            $expected['hide_empty'],
    191191            wp_list_authors(
     
    218218            '<li><a href="' . self::$user_urls[0] . '" title="Posts by zack">zack</a> (<a href="' . $url0 . '">link to feed</a>)</li>';
    219219
    220         $this->AssertEquals(
     220        $this->assertSame(
    221221            $expected['feed'],
    222222            wp_list_authors(
     
    239239            '<li><a href="' . self::$user_urls[0] . '" title="Posts by zack">zack</a> <a href="' . $url0 . '"><img src="http://' . WP_TESTS_DOMAIN . '/path/to/a/graphic.png" style="border: none;" /></a></li>';
    240240
    241         $this->AssertEquals(
     241        $this->assertSame(
    242242            $expected['feed_image'],
    243243            wp_list_authors(
     
    263263            '<li><a href="' . self::$user_urls[0] . '" title="Posts by zack">zack</a> (<a href="' . $url0 . '">link to feed</a>)</li>';
    264264
    265         $this->AssertEquals(
     265        $this->assertSame(
    266266            $expected['feed_type'],
    267267            wp_list_authors(
     
    281281            '<a href="' . self::$user_urls[0] . '" title="Posts by zack">zack</a>';
    282282
    283         $this->AssertEquals(
     283        $this->assertSame(
    284284            $expected['style'],
    285285            wp_list_authors(
     
    295295        $expected['html'] = 'bob, paul, zack';
    296296
    297         $this->AssertEquals(
     297        $this->assertSame(
    298298            $expected['html'],
    299299            wp_list_authors(
Note: See TracChangeset for help on using the changeset viewer.