Skip to content

Commit 7b8a48c

Browse files
committed
Updating CSS test output strings in the tests to non-prettified versions. The Style Engine does not prettify by default.
1 parent ec6ea9d commit 7b8a48c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

tests/phpunit/tests/block-supports/border.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function test_border_color_slug_with_numbers_is_kebab_cased_properly() {
6464
$actual = wp_apply_border_support( $block_type, $block_atts );
6565
$expected = array(
6666
'class' => 'has-border-color has-red-border-color',
67-
'style' => 'border-radius: 10px; border-style: dashed; border-width: 1px;',
67+
'style' => 'border-radius:10px;border-style:dashed;border-width:1px;',
6868
);
6969

7070
$this->assertSame( $expected, $actual );
@@ -154,7 +154,7 @@ function test_radius_with_individual_skipped_serialization_block_supports() {
154154

155155
$actual = wp_apply_border_support( $block_type, $block_atts );
156156
$expected = array(
157-
'style' => 'border-style: dotted; border-width: 1px;',
157+
'style' => 'border-style:dotted;border-width:1px;',
158158
);
159159

160160
$this->assertSame( $expected, $actual );

tests/phpunit/tests/block-supports/colors.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function test_color_slugs_with_numbers_are_kebab_cased_properly() {
6060
);
6161

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

6565
$this->assertSame( $expected, $actual );
6666
}
@@ -143,7 +143,7 @@ function test_gradient_with_individual_skipped_serialization_block_supports() {
143143
$actual = wp_apply_colors_support( $block_type, $block_atts );
144144
$expected = array(
145145
'class' => 'has-text-color',
146-
'style' => 'color: #d92828;',
146+
'style' => 'color:#d92828;',
147147
);
148148

149149
$this->assertSame( $expected, $actual );

tests/phpunit/tests/block-supports/spacing.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function test_spacing_style_is_applied() {
6363

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

6969
$this->assertSame( $expected, $actual );
@@ -159,7 +159,7 @@ function test_margin_with_individual_skipped_serialization_block_supports() {
159159

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

165165
$this->assertSame( $expected, $actual );

0 commit comments

Comments
 (0)