WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/07/2021 10:32:56 AM (2 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/xmlrpc/wp/getUsers.php

    r51331 r51367  
    103103
    104104        // Verify that $user_ids matches $users_found.
    105         $this->assertSame( 0, count( array_diff( $user_ids, $users_found ) ) );
     105        $this->assertCount( 0, array_diff( $user_ids, $users_found ) );
    106106    }
    107107
Note: See TracChangeset for help on using the changeset viewer.