Make WordPress Core


Ignore:
Timestamp:
10/07/2022 01:02:07 AM (4 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/style-engine/wpStyleEngineCssRulesStore.php

    r54156 r54402  
    8989                $quesadilla_store = WP_Style_Engine_CSS_Rules_Store::get_store( 'quesadilla' );
    9090
    91                 $this->assertEquals(
     91                $this->assertSame(
    9292                        array(
    9393                                'burrito'    => $burrito_store,
     
    109109                $tzatziki_store = WP_Style_Engine_CSS_Rules_Store::get_store( 'tzatziki' );
    110110
    111                 $this->assertEquals(
     111                $this->assertSame(
    112112                        array(
    113113                                'dolmades' => $dolmades_store,
     
    120120                WP_Style_Engine_CSS_Rules_Store::remove_all_stores();
    121121
    122                 $this->assertEquals(
     122                $this->assertSame(
    123123                        array(),
    124124                        WP_Style_Engine_CSS_Rules_Store::get_stores(),
Note: See TracChangeset for help on using the changeset viewer.