Changeset 59822
- Timestamp:
- 02/14/2025 10:34:23 AM (3 months ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/fonts/font-library/wpRestFontFamiliesController.php
r58328 r59822 237 237 238 238 $this->assertSame( 200, $response->get_status(), 'The response status should be 200.' ); 239 $this->assertCount( 1, $data, 'There should be 2 propertiesin the response data.' );239 $this->assertCount( 1, $data, 'There should be 1 property in the response data.' ); 240 240 $this->assertArrayHasKey( 'id', $data[0], 'The id property should exist in the response data.' ); 241 241 $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 428 428 $this->assertArrayHasKey( 'title-tag', $theme_supports ); 429 429 $this->assertArrayHasKey( 'wp-block-styles', $theme_supports ); 430 $this->assertCount( 24, $theme_supports, 'There should be 2 3theme supports' );430 $this->assertCount( 24, $theme_supports, 'There should be 24 theme supports' ); 431 431 } 432 432
Note: See TracChangeset
for help on using the changeset viewer.