From 3cb6f0354102f1f492ba6e4eaa574e2a314e21a4 Mon Sep 17 00:00:00 2001 From: Aaron Jorbin Date: Fri, 26 Jan 2024 00:52:39 +0000 Subject: [PATCH] Build/Tests: Ensure set_error_handler is cleaned up. Follow up to: [57332]. Fixes #60305. git-svn-id: https://develop.svn.wordpress.org/trunk@57361 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/theme/wpThemeJson.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/phpunit/tests/theme/wpThemeJson.php b/tests/phpunit/tests/theme/wpThemeJson.php index 1c99de56bd205..31a99b3f1ebca 100644 --- a/tests/phpunit/tests/theme/wpThemeJson.php +++ b/tests/phpunit/tests/theme/wpThemeJson.php @@ -4304,6 +4304,9 @@ static function ( $errno, $errstr ) { ); $theme_json->set_spacing_sizes(); + + restore_error_handler(); + $this->assertSame( $expected_output, _wp_array_get( $theme_json->get_raw_data(), array( 'settings', 'spacing', 'spacingSizes', 'default' ) ) ); }