WordPress.org

Make WordPress Core

Changeset 48954


Ignore:
Timestamp:
09/07/2020 04:11:54 AM (15 months ago)
Author:
SergeyBiryukov
Message:

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

See #38266.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/meta.php

    r48937 r48954  
    373373        // phpcs:ignore WordPress.PHP.StrictComparisons.LooseComparison -- intentional implicit casting check
    374374        $this->assertTrue( floor( $string_mid ) == $string_mid );
    375         $this->assertNotEquals( false, get_metadata_by_mid( 'user', $string_mid ) );
    376         $this->assertNotEquals( false, update_metadata_by_mid( 'user', $string_mid, 'meta_new_value_2' ) );
    377         $this->assertNotEquals( false, delete_metadata_by_mid( 'user', $string_mid ) );
     375        $this->assertNotFalse( get_metadata_by_mid( 'user', $string_mid ) );
     376        $this->assertNotFalse( update_metadata_by_mid( 'user', $string_mid, 'meta_new_value_2' ) );
     377        $this->assertNotFalse( delete_metadata_by_mid( 'user', $string_mid ) );
    378378    }
    379379
Note: See TracChangeset for help on using the changeset viewer.