Skip to content

Commit

Permalink
Updating tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed Dec 9, 2021
1 parent 6f072c6 commit a742255
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions phpunit/block-supports/spacing-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function test_spacing_gap_block_support_renders_block_inline_style() {
);

$this->assertSame(
'<div style="--wp--style--block-gap: 3em 3em; --wp--style--block-row-gap: 3em; --wp--style--block-column-gap: 3em;" class="wp-block-test-block">Test</div>',
'<div style="--wp--style--block-gap: 3em; --wp--style--block-row-gap: 3em; --wp--style--block-column-gap: 3em;" class="wp-block-test-block">Test</div>',
$render_output
);
}
Expand Down Expand Up @@ -117,7 +117,7 @@ function test_spacing_gap_block_support_renders_block_inline_style_with_inner_ta
);

$this->assertSame(
'<div style="--wp--style--block-gap: 3em 3em; --wp--style--block-row-gap: 3em; --wp--style--block-column-gap: 3em;" class="wp-test-block"><p style="color: red;">Test</p></div>',
'<div style="--wp--style--block-gap: 3em; --wp--style--block-row-gap: 3em; --wp--style--block-column-gap: 3em;" class="wp-test-block"><p style="color: red;">Test</p></div>',
$render_output
);
}
Expand All @@ -130,7 +130,7 @@ function test_spacing_gap_block_support_renders_block_inline_style_with_no_other
);

$this->assertSame(
'<div style="--wp--style--block-gap: 3em 3em; --wp--style--block-row-gap: 3em; --wp--style--block-column-gap: 3em;"><p>Test</p></div>',
'<div style="--wp--style--block-gap: 3em; --wp--style--block-row-gap: 3em; --wp--style--block-column-gap: 3em;"><p>Test</p></div>',
$render_output
);
}
Expand All @@ -143,7 +143,7 @@ function test_spacing_gap_block_support_renders_appended_block_inline_style() {
);

$this->assertSame(
'<div class="wp-test-block" style="--wp--style--block-gap: 3em 3em; --wp--style--block-row-gap: 3em; --wp--style--block-column-gap: 3em; background: green;"><p style="color: red;">Test</p></div>',
'<div class="wp-test-block" style="--wp--style--block-gap: 3em; --wp--style--block-row-gap: 3em; --wp--style--block-column-gap: 3em; background: green;"><p style="color: red;">Test</p></div>',
$render_output
);
}
Expand Down

0 comments on commit a742255

Please sign in to comment.