Make WordPress Core


Ignore:
Timestamp:
07/11/2021 12:41:48 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Tests: Use more appropriate assertions in various tests.

This replaces instances of assertTrue( empty( ... ) ) with assertEmpty() to use native PHPUnit functionality.

Follow-up to [51335], [51337], [51367], [51397].

See #53363.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/term/wpInsertTerm.php

    r51331 r51403  
    188188        $term = self::factory()->tag->create_and_get( array( 'name' => 'Bozo' ) );
    189189        $this->assertNotWPError( $term );
    190         $this->assertTrue( empty( $term->errors ) );
     190        $this->assertEmpty( $term->errors );
    191191
    192192        // Test existing term name with unique slug.
Note: See TracChangeset for help on using the changeset viewer.