Make WordPress Core


Ignore:
Timestamp:
09/29/2023 03:22:12 PM (9 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/wpRestMenuItemsController.php

    r56549 r56746  
    744744        $data       = $response->get_data();
    745745        $properties = $data['schema']['properties'];
    746         $this->assertSame( 18, count( $properties ) );
     746        $this->assertCount( 18, $properties );
    747747        $this->assertArrayHasKey( 'type_label', $properties );
    748748        $this->assertArrayHasKey( 'attr_title', $properties );
Note: See TracChangeset for help on using the changeset viewer.