Make WordPress Core


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

    r56559 r56746  
    162162
    163163        $block_template_ids = wp_list_pluck( $block_templates, 'id' );
    164         $this->assertSame( count( array_unique( $block_template_ids ) ), count( $block_template_ids ), $error_message );
     164        $this->assertCount( count( array_unique( $block_template_ids ) ), $block_template_ids, $error_message );
    165165    }
    166166
Note: See TracChangeset for help on using the changeset viewer.