Make WordPress Core


Ignore:
Timestamp:
09/29/2023 03:22:12 PM (5 months ago)
Author:
jorbin
Message:

Tests: Reduce usage of assertEquals

Replaces assertSame with assertCount in a number of tests.

Props ayeshrajans, jorbin.
See #58956.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/wpRestMenuLocationsController.php

    r55457 r56746  
    182182        $data       = $response->get_data();
    183183        $properties = $data['schema']['properties'];
    184         $this->assertSame( 3, count( $properties ) );
     184        $this->assertCount( 3, $properties );
    185185        $this->assertArrayHasKey( 'name', $properties );
    186186        $this->assertArrayHasKey( 'description', $properties );
Note: See TracChangeset for help on using the changeset viewer.