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/customize/widgets.php

    r54872 r56746  
    237237        $selective_refreshable_widgets = $this->manager->widgets->get_selective_refreshable_widgets();
    238238        $this->assertIsArray( $selective_refreshable_widgets );
    239         $this->assertSame( count( $wp_widget_factory->widgets ), count( $selective_refreshable_widgets ) );
     239        $this->assertCount( count( $wp_widget_factory->widgets ), $selective_refreshable_widgets );
    240240        $this->assertArrayHasKey( 'text', $selective_refreshable_widgets );
    241241        $this->assertTrue( $selective_refreshable_widgets['text'] );
Note: See TracChangeset for help on using the changeset viewer.