Skip to content

Commit

Permalink
Updating CSS test output strings in the tests to non-prettified versi…
Browse files Browse the repository at this point in the history
…ons. The Style Engine does not prettify by default.
  • Loading branch information
ramonjd committed Sep 19, 2022
1 parent ec6ea9d commit 7b8a48c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/phpunit/tests/block-supports/border.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function test_border_color_slug_with_numbers_is_kebab_cased_properly() {
$actual = wp_apply_border_support( $block_type, $block_atts );
$expected = array(
'class' => 'has-border-color has-red-border-color',
'style' => 'border-radius: 10px; border-style: dashed; border-width: 1px;',
'style' => 'border-radius:10px;border-style:dashed;border-width:1px;',
);

$this->assertSame( $expected, $actual );
Expand Down Expand Up @@ -154,7 +154,7 @@ function test_radius_with_individual_skipped_serialization_block_supports() {

$actual = wp_apply_border_support( $block_type, $block_atts );
$expected = array(
'style' => 'border-style: dotted; border-width: 1px;',
'style' => 'border-style:dotted;border-width:1px;',
);

$this->assertSame( $expected, $actual );
Expand Down
4 changes: 2 additions & 2 deletions tests/phpunit/tests/block-supports/colors.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function test_color_slugs_with_numbers_are_kebab_cased_properly() {
);

$actual = wp_apply_colors_support( $block_type, $block_atts );
$expected = array( 'class' => 'has-text-color has-fg-1-color has-background has-bg-2-background-color has-background has-gr-3-gradient-background' );
$expected = array( 'class' => 'has-text-color has-fg-1-color has-background has-bg-2-background-color has-gr-3-gradient-background' );

$this->assertSame( $expected, $actual );
}
Expand Down Expand Up @@ -143,7 +143,7 @@ function test_gradient_with_individual_skipped_serialization_block_supports() {
$actual = wp_apply_colors_support( $block_type, $block_atts );
$expected = array(
'class' => 'has-text-color',
'style' => 'color: #d92828;',
'style' => 'color:#d92828;',
);

$this->assertSame( $expected, $actual );
Expand Down
4 changes: 2 additions & 2 deletions tests/phpunit/tests/block-supports/spacing.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function test_spacing_style_is_applied() {

$actual = wp_apply_spacing_support( $block_type, $block_atts );
$expected = array(
'style' => 'padding: 111px; margin-top: 1px; margin-right: 2px; margin-bottom: 3px; margin-left: 4px;',
'style' => 'padding:111px;margin-top:1px;margin-right:2px;margin-bottom:3px;margin-left:4px;',
);

$this->assertSame( $expected, $actual );
Expand Down Expand Up @@ -159,7 +159,7 @@ function test_margin_with_individual_skipped_serialization_block_supports() {

$actual = wp_apply_spacing_support( $block_type, $block_atts );
$expected = array(
'style' => 'padding-top: 1px; padding-right: 2px; padding-bottom: 3px; padding-left: 4px;',
'style' => 'padding-top:1px;padding-right:2px;padding-bottom:3px;padding-left:4px;',
);

$this->assertSame( $expected, $actual );
Expand Down

0 comments on commit 7b8a48c

Please sign in to comment.