Make WordPress Core


Ignore:
Timestamp:
05/29/2024 12:20:56 PM (2 years 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/oembed/getResponseData.php

    r52132 r58235  
    249249                $this->assertArrayHasKey( 'thumbnail_width', $data );
    250250                $this->assertArrayHasKey( 'thumbnail_height', $data );
    251                 $this->assertTrue( 400 >= $data['thumbnail_width'] );
     251                $this->assertLessThanOrEqual( 400, $data['thumbnail_width'] );
    252252        }
    253253
    … …  
    268268                $this->assertArrayHasKey( 'thumbnail_width', $data );
    269269                $this->assertArrayHasKey( 'thumbnail_height', $data );
    270                 $this->assertTrue( 400 >= $data['thumbnail_width'] );
     270                $this->assertLessThanOrEqual( 400, $data['thumbnail_width'] );
    271271        }
    272272}
Note: See TracChangeset for help on using the changeset viewer.