Make WordPress Core


Ignore:
Timestamp:
02/14/2025 10:34:23 AM (4 months ago)
Author:
SergeyBiryukov
Message:

Tests: Correct failure messages for some tests.

Follow-up to [54176], [57548], [58328].

Props poena, SergeyBiryukov.
See #62280.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/fonts/font-library/wpRestFontFamiliesController.php

    r58328 r59822  
    237237
    238238        $this->assertSame( 200, $response->get_status(), 'The response status should be 200.' );
    239         $this->assertCount( 1, $data, 'There should be 2 properties in the response data.' );
     239        $this->assertCount( 1, $data, 'There should be 1 property in the response data.' );
    240240        $this->assertArrayHasKey( 'id', $data[0], 'The id property should exist in the response data.' );
    241241        $this->assertSame( $font_family->ID, $data[0]['id'], 'The id should match the expected ID in the response data.' );
Note: See TracChangeset for help on using the changeset viewer.