WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/07/2021 10:32:56 AM (3 months ago)
Author:
SergeyBiryukov
Message:

Tests: Use more appropriate assertions in various tests.

This replaces instances of assertSame( [number], count( ... ) ) with assertCount() to use native PHPUnit functionality.

Follow-up to [51335], [51337].

See #53363.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/theme/wpThemeGetAllowedFilters.php

    r50968 r51367  
    2222            remove_filter( 'network_allowed_themes', array( $this, 'filter_network_allowed_themes' ) );
    2323
    24             $this->assertSame( 2, count( $this->filter_network_allowed_themes_args ) );
     24            $this->assertCount( 2, $this->filter_network_allowed_themes_args );
    2525            $this->assertSame( $blog_id, $this->filter_network_allowed_themes_args[1] );
    2626        }
Note: See TracChangeset for help on using the changeset viewer.