mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-22 12:14:29 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@54402 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -88,7 +88,7 @@ class Tests_Style_Engine_wpStyleEngineCSSRulesStore extends WP_UnitTestCase {
|
||||
$burrito_store = WP_Style_Engine_CSS_Rules_Store::get_store( 'burrito' );
|
||||
$quesadilla_store = WP_Style_Engine_CSS_Rules_Store::get_store( 'quesadilla' );
|
||||
|
||||
$this->assertEquals(
|
||||
$this->assertSame(
|
||||
array(
|
||||
'burrito' => $burrito_store,
|
||||
'quesadilla' => $quesadilla_store,
|
||||
@@ -108,7 +108,7 @@ class Tests_Style_Engine_wpStyleEngineCSSRulesStore extends WP_UnitTestCase {
|
||||
$dolmades_store = WP_Style_Engine_CSS_Rules_Store::get_store( 'dolmades' );
|
||||
$tzatziki_store = WP_Style_Engine_CSS_Rules_Store::get_store( 'tzatziki' );
|
||||
|
||||
$this->assertEquals(
|
||||
$this->assertSame(
|
||||
array(
|
||||
'dolmades' => $dolmades_store,
|
||||
'tzatziki' => $tzatziki_store,
|
||||
@@ -119,7 +119,7 @@ class Tests_Style_Engine_wpStyleEngineCSSRulesStore extends WP_UnitTestCase {
|
||||
|
||||
WP_Style_Engine_CSS_Rules_Store::remove_all_stores();
|
||||
|
||||
$this->assertEquals(
|
||||
$this->assertSame(
|
||||
array(),
|
||||
WP_Style_Engine_CSS_Rules_Store::get_stores(),
|
||||
'Return value of get_stores() is not an empty array after remove_all_stores() called.'
|
||||
|
||||
Reference in New Issue
Block a user