Make WordPress Core


Ignore:
Timestamp:
10/07/2022 01:02:07 AM (3 years ago)
Author:
desrosj
Message:

Tests: Replace some occurrences of assertEquals() with assertSame().

This ensures that not only the return values match the expected results, but also that their type is the same.

Props costdev, desrosj.
See #55654.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/multisite/network.php

    r54088 r54402  
    172172            wp_update_network_counts();
    173173
    174             $this->assertEquals( $site_count_start, $actual );
     174            $this->assertSame( $site_count_start, $actual );
    175175        }
    176176
     
    192192            wp_update_network_counts();
    193193
    194             $this->assertEquals( $site_count_start + 1, $actual );
     194            $this->assertSame( $site_count_start + 1, $actual );
    195195        }
    196196
     
    203203            $site_count = get_blog_count( self::$different_network_id );
    204204
    205             $this->assertEquals( count( self::$different_site_ids ), $site_count );
    206         }
    207 
    208 
     205            $this->assertSame( count( self::$different_site_ids ), $site_count );
     206        }
    209207
    210208        public function test_active_network_plugins() {
Note: See TracChangeset for help on using the changeset viewer.