Changeset 57332
- Timestamp:
- 01/23/2024 08:57:48 AM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/theme/wpThemeJson.php
r57254 r57332 4282 4282 */ 4283 4283 public function test_set_spacing_sizes_should_detect_invalid_spacing_scale( $spacing_scale, $expected_output ) { 4284 $this->expect Notice();4285 $this->expect NoticeMessage( 'Some of the theme.json settings.spacing.spacingScale values are invalid' );4284 $this->expectException( Exception::class ); 4285 $this->expectExceptionMessage( 'Some of the theme.json settings.spacing.spacingScale values are invalid' ); 4286 4286 4287 4287 $theme_json = new WP_Theme_JSON( … … 4294 4294 ), 4295 4295 ) 4296 ); 4297 4298 // Ensure PHPUnit 10 compatibility. 4299 set_error_handler( 4300 static function ( $errno, $errstr ) { 4301 restore_error_handler(); 4302 throw new Exception( $errstr, $errno ); 4303 }, 4304 E_ALL 4296 4305 ); 4297 4306
Note: See TracChangeset
for help on using the changeset viewer.