From 2fc8bb8cd8caf7898654568a16d5e51ab95b265e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= Date: Mon, 1 Feb 2021 13:40:08 +0100 Subject: [PATCH] Fix legacy settings tests (#28628) --- phpunit/class-wp-theme-json-legacy-settings-test.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/phpunit/class-wp-theme-json-legacy-settings-test.php b/phpunit/class-wp-theme-json-legacy-settings-test.php index efcac3765b6ebd..3849c41ef4d188 100644 --- a/phpunit/class-wp-theme-json-legacy-settings-test.php +++ b/phpunit/class-wp-theme-json-legacy-settings-test.php @@ -86,7 +86,8 @@ function test_legacy_settings_custom_units_can_be_disabled() { $input = gutenberg_get_common_block_editor_settings(); $expected = array( - 'units' => array( array() ), + 'units' => array( array() ), + 'customPadding' => false, ); $actual = gutenberg_experimental_global_styles_get_theme_support_settings( $input ); @@ -100,7 +101,8 @@ function test_legacy_settings_custom_units_can_be_enabled() { $input = gutenberg_get_common_block_editor_settings(); $expected = array( - 'units' => array( 'px', 'em', 'rem', 'vh', 'vw' ), + 'units' => array( 'px', 'em', 'rem', 'vh', 'vw' ), + 'customPadding' => false, ); $actual = gutenberg_experimental_global_styles_get_theme_support_settings( $input ); @@ -114,7 +116,8 @@ function test_legacy_settings_custom_units_can_be_filtered() { $input = gutenberg_get_common_block_editor_settings(); $expected = array( - 'units' => array( 'rem', 'em' ), + 'units' => array( 'rem', 'em' ), + 'customPadding' => false, ); $actual = gutenberg_experimental_global_styles_get_theme_support_settings( $input );