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
This commit is contained in:
Aaron Jorbin 2024-01-26 00:52:39 +00:00
parent fe1df4023c
commit 3cb6f03541

View File

@ -4304,6 +4304,9 @@ class Tests_Theme_wpThemeJson extends WP_UnitTestCase {
);
$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' ) ) );
}