Make WordPress Core


Ignore:
Timestamp:
09/29/2023 03:22:12 PM (19 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/rest-tags-controller.php

    r56549 r56746  
    14101410        );
    14111411        $tags = get_terms( 'post_tag', $args );
    1412         $this->assertSame( count( $tags ), count( $data ) );
     1412        $this->assertCount( count( $tags ), $data );
    14131413        $this->assertSame( $tags[0]->term_id, $data[0]['id'] );
    14141414        $this->assertSame( $tags[0]->name, $data[0]['name'] );
Note: See TracChangeset for help on using the changeset viewer.