mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
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:
@@ -344,7 +344,7 @@ class Tests_Meta extends WP_UnitTestCase {
|
||||
function test_negative_meta_id() {
|
||||
$negative_mid = $this->meta_id * -1;
|
||||
|
||||
$this->assertTrue( $negative_mid < 0 );
|
||||
$this->assertLessThan( 0, $negative_mid );
|
||||
$this->assertFalse( get_metadata_by_mid( 'user', $negative_mid ) );
|
||||
$this->assertFalse( update_metadata_by_mid( 'user', $negative_mid, 'meta_new_value' ) );
|
||||
$this->assertFalse( delete_metadata_by_mid( 'user', $negative_mid ) );
|
||||
|
||||
Reference in New Issue
Block a user