Tests: Replace a few instances of assertNotEquals() with assertNotFalse().

See #38266.

git-svn-id: https://develop.svn.wordpress.org/trunk@48954 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-09-07 04:11:54 +00:00
parent 3a9e78c000
commit a85d190b00

View File

@ -372,9 +372,9 @@ class Tests_Meta extends WP_UnitTestCase {
// phpcs:ignore WordPress.PHP.StrictComparisons.LooseComparison -- intentional implicit casting check // phpcs:ignore WordPress.PHP.StrictComparisons.LooseComparison -- intentional implicit casting check
$this->assertTrue( floor( $string_mid ) == $string_mid ); $this->assertTrue( floor( $string_mid ) == $string_mid );
$this->assertNotEquals( false, get_metadata_by_mid( 'user', $string_mid ) ); $this->assertNotFalse( get_metadata_by_mid( 'user', $string_mid ) );
$this->assertNotEquals( false, update_metadata_by_mid( 'user', $string_mid, 'meta_new_value_2' ) ); $this->assertNotFalse( update_metadata_by_mid( 'user', $string_mid, 'meta_new_value_2' ) );
$this->assertNotEquals( false, delete_metadata_by_mid( 'user', $string_mid ) ); $this->assertNotFalse( delete_metadata_by_mid( 'user', $string_mid ) );
} }
/** /**