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/rest-api/rest-block-renderer-controller.php

    r54058 r54402  
    422422
    423423        $this->assertSame( $expected_attributes, json_decode( $data['rendered'], true ) );
    424         $this->assertEquals(
     424        $this->assertEqualSetsWithIndex(
    425425            json_decode( $block_type->render( $attributes ), true ),
    426426            json_decode( $data['rendered'], true )
Note: See TracChangeset for help on using the changeset viewer.