Make WordPress Core


Ignore:
Timestamp:
10/07/2022 01:02:07 AM (21 months 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-site-health-controller.php

    r54043 r54402  
    117117
    118118        $route = current( $route );
    119         $this->assertEquals(
     119        $this->assertSame(
    120120            array( WP_REST_Server::READABLE => true ),
    121121            $route['methods']
    122122        );
    123123
    124         $this->assertEquals(
     124        $this->assertSame(
    125125            'test_page_cache',
    126126            $route['callback'][1]
Note: See TracChangeset for help on using the changeset viewer.