Make WordPress Core

Changeset 59822


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

Tests: Correct failure messages for some tests.

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

Props poena, SergeyBiryukov.
See #62280.

Location:
trunk/tests/phpunit/tests
Files:
2 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.' );
  • trunk/tests/phpunit/tests/rest-api/rest-themes-controller.php

    r59157 r59822  
    428428        $this->assertArrayHasKey( 'title-tag', $theme_supports );
    429429        $this->assertArrayHasKey( 'wp-block-styles', $theme_supports );
    430         $this->assertCount( 24, $theme_supports, 'There should be 23 theme supports' );
     430        $this->assertCount( 24, $theme_supports, 'There should be 24 theme supports' );
    431431    }
    432432
Note: See TracChangeset for help on using the changeset viewer.