Make WordPress Core


Ignore:
Timestamp:
07/15/2021 02:44:22 PM (3 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/customize/manager.php

    r51415 r51438  
    12151215        wp_set_current_user( self::$admin_user_id );
    12161216        $this->assertSame( 'publish', get_post_meta( $post_id, '_wp_trash_meta_status', true ) );
    1217         $this->assertTrue( is_numeric( get_post_meta( $post_id, '_wp_trash_meta_time', true ) ) );
     1217        $this->assertIsNumeric( get_post_meta( $post_id, '_wp_trash_meta_time', true ) );
    12181218
    12191219        foreach ( array_keys( $expected_actions ) as $action_name ) {
Note: See TracChangeset for help on using the changeset viewer.