Make WordPress Core


Ignore:
Timestamp:
07/07/2021 10:32:56 AM (3 years 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/post/query.php

    r51331 r51367  
    9797
    9898        // Fourth post added in filter.
    99         $this->assertSame( 4, count( $query->posts ) );
     99        $this->assertCount( 4, $query->posts );
    100100        $this->assertSame( 4, $query->post_count );
    101101
Note: See TracChangeset for help on using the changeset viewer.