Make WordPress Core


Ignore:
Timestamp:
05/29/2024 12:20:56 PM (12 months ago)
Author:
SergeyBiryukov
Message:

Tests: Use more specific assertions in a few tests.

Follow-up to [121/tests], [915/tests], [34903], [36307], [43548], [44154], [52286], [57337].

See #60705.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/block-template-utils.php

    r57919 r58235  
    380380        $filename = wp_generate_block_templates_export_file();
    381381        $this->assertFileExists( $filename, 'zip file is created at the specified path' );
    382         $this->assertTrue( filesize( $filename ) > 0, 'zip file is larger than 0 bytes' );
     382        $this->assertGreaterThan( 0, filesize( $filename ), 'zip file is larger than 0 bytes' );
    383383
    384384        // Open ZIP file and make sure the directories exist.
Note: See TracChangeset for help on using the changeset viewer.