mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-30 01:14:28 +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:
@@ -208,7 +208,7 @@ class Tests_Block_Template_Utils extends WP_UnitTestCase {
|
||||
* @dataProvider data_remove_theme_attribute_in_block_template_content
|
||||
*/
|
||||
function test_remove_theme_attribute_in_block_template_content( $template_content, $expected ) {
|
||||
$this->assertEquals( $expected, _remove_theme_attribute_in_block_template_content( $template_content ) );
|
||||
$this->assertSame( $expected, _remove_theme_attribute_in_block_template_content( $template_content ) );
|
||||
}
|
||||
|
||||
function data_remove_theme_attribute_in_block_template_content() {
|
||||
|
||||
Reference in New Issue
Block a user