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/blocks/wpBlockType.php

    r53268 r54402  
    241241                $prepared_attributes = $block_type->prepare_attributes_for_render( $attributes );
    242242
    243                 $this->assertEquals(
     243                $this->assertSameSetsWithIndex(
    244244                        array(
    245245                                'correct'            => 'include',
Note: See TracChangeset for help on using the changeset viewer.