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/term/getTerms.php

    r56585 r56746  
    31733173        $query2        = get_terms( $args_2 );
    31743174        $this->assertSame( $num_queries_1, get_num_queries() );
    3175         $this->assertSame( count( $query1 ), count( $query2 ) );
     3175        $this->assertCount( count( $query1 ), $query2 );
    31763176    }
    31773177
Note: See TracChangeset for help on using the changeset viewer.