Tests: Use more appropriate assertions in various tests.

This replaces instances of `assertTrue( is_numeric( ... ) )` with `assertIsNumeric()` to use native PHPUnit functionality.

Follow-up to [51335], [51337], [51367], [51397], [51403], [51404], [51436].

See #53363.

git-svn-id: https://develop.svn.wordpress.org/trunk@51438 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2021-07-15 14:44:22 +00:00
parent cc5e3f7811
commit 56a90eb273
9 changed files with 14 additions and 14 deletions

View File

@@ -1198,7 +1198,7 @@ class Tests_Functions extends WP_UnitTestCase {
for ( $i = 0; $i < 20; $i += 1 ) {
$id = wp_unique_id();
$this->assertIsString( $id );
$this->assertTrue( is_numeric( $id ) );
$this->assertIsNumeric( $id );
$ids[] = $id;
}
$this->assertSame( $ids, array_unique( $ids ) );