Skip to content

Commit 381731a

Browse files
Tests: Correct failure messages for some tests.
Follow-up to [54176], [57548], [58328]. Props poena, SergeyBiryukov. See #62280. git-svn-id: https://develop.svn.wordpress.org/trunk@59822 602fd350-edb4-49c9-b593-d223f7449a82
1 parent b251dea commit 381731a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/phpunit/tests/fonts/font-library/wpRestFontFamiliesController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public function test_get_items_by_slug() {
236236
$data = $response->get_data();
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.' );
242242
}

tests/phpunit/tests/rest-api/rest-themes-controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ public function test_get_item_schema() {
427427
$this->assertArrayHasKey( 'responsive-embeds', $theme_supports );
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

433433
/**

0 commit comments

Comments
 (0)