Skip to content

Commit

Permalink
Fix legacy settings tests (#28628)
Browse files Browse the repository at this point in the history
  • Loading branch information
nosolosw authored and noisysocks committed Feb 8, 2021
1 parent c1fcffc commit 2fc8bb8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions phpunit/class-wp-theme-json-legacy-settings-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand All @@ -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 );
Expand All @@ -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 );
Expand Down

0 comments on commit 2fc8bb8

Please sign in to comment.