Make WordPress Core


Ignore:
Timestamp:
07/11/2021 12:41:48 PM (5 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/import/base.php

    r47122 r51403  
    2525        $file     = realpath( $filename );
    2626
    27         $this->assertTrue( ! empty( $file ), 'Path to import file is empty.' );
     27        $this->assertNotEmpty( $file, 'Path to import file is empty.' );
    2828        $this->assertTrue( is_file( $file ), 'Import file is not a file.' );
    2929
Note: See TracChangeset for help on using the changeset viewer.