Tests: Use more appropriate assertions in various tests.

This replaces instances of `assertTrue( ... > 0 )` with `assertGreaterThan()` to use native PHPUnit functionality.

Follow-up to [51335], [51337], [51367], [51397], [51403], [51404], [51436], [51438], [51448], [51449], [51451], [51453].

See #53363.

git-svn-id: https://develop.svn.wordpress.org/trunk@51454 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2021-07-18 14:10:24 +00:00
parent ba94d9b67b
commit 4a533f4879
10 changed files with 36 additions and 33 deletions

View File

@@ -451,7 +451,8 @@ if ( is_multisite() ) :
$site_count = (int) get_blog_count();
$user_count = (int) get_user_count();
$this->assertTrue( $site_count > 0 && $user_count > 0 );
$this->assertGreaterThan( 0, $site_count );
$this->assertGreaterThan( 0, $user_count );
}
/**
@@ -466,7 +467,8 @@ if ( is_multisite() ) :
$site_count = (int) get_blog_count( self::$different_network_id );
$user_count = (int) get_user_count( self::$different_network_id );
$this->assertTrue( $site_count > 0 && $user_count > 0 );
$this->assertGreaterThan( 0, $site_count );
$this->assertGreaterThan( 0, $user_count );
}
/**