Make WordPress Core


Ignore:
Timestamp:
05/29/2024 12:20:56 PM (6 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/multisite/site.php

    r58097 r58235  
    12141214                    $this->assertEquals( $expected_data[ $key ], $value );
    12151215                } elseif ( 'last_updated' === $key ) {
    1216                     $this->assertTrue( $old_site->last_updated <= $value );
     1216                    $this->assertLessThanOrEqual( $value, $old_site->last_updated );
    12171217                } else {
    12181218                    $this->assertSame( $old_site->$key, $value );
Note: See TracChangeset for help on using the changeset viewer.