Make WordPress Core


Ignore:
Timestamp:
07/18/2021 02:10:24 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Tests: Use more appropriate assertions in various tests.

This replaces instances of assertTrue( ... > 0 ) with assertGreaterThan() to use native PHPUnit functionality.

Follow-up to [51335], [51337], [51367], [51397], [51403], [51404], [51436], [51438], [51448], [51449], [51451], [51453].

See #53363.

File:
1 edited

Legend:

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

    r51403 r51454  
    141141            $this->assertNotEmpty( $theme['Description'] );
    142142            $this->assertNotEmpty( $theme['Author'] );
    143             $this->assertTrue( version_compare( $theme['Version'], 0 ) > 0 );
     143            $this->assertGreaterThan( 0, version_compare( $theme['Version'], 0 ) );
    144144            $this->assertNotEmpty( $theme['Template'] );
    145145            $this->assertNotEmpty( $theme['Stylesheet'] );
Note: See TracChangeset for help on using the changeset viewer.