WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/06/2021 12:25:53 PM (3 months ago)
Author:
SergeyBiryukov
Message:

Tests: Use more appropriate assertions in various tests.

This replaces instances of assertTrue( is_array( ... ) ) with assertIsArray() to use native PHPUnit functionality.

Follow-up to [51331].

See #53363.

File:
1 edited

Legend:

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

    r51331 r51335  
    156156
    157157        // There is already some stuff in the array.
    158         $this->assertTrue( is_array( get_user_meta( self::$author_id ) ) );
     158        $this->assertIsArray( get_user_meta( self::$author_id ) );
    159159
    160160        foreach ( $vals as $k => $v ) {
Note: See TracChangeset for help on using the changeset viewer.