Skip to content

Commit

Permalink
Background block supports: remove unused properties in unit tests (#6…
Browse files Browse the repository at this point in the history
…4564)

Co-authored-by: ramonjd <[email protected]>
Co-authored-by: andrewserong <[email protected]>
  • Loading branch information
3 people authored Aug 16, 2024
1 parent 8457cb8 commit 6de3f66
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions phpunit/block-supports/background-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public function test_background_block_support( $theme_name, $block_name, $backgr
*/
public function data_background_block_support() {
return array(
'background image style is applied to uploaded images' => array(
'background image style is applied' => array(
'theme_name' => 'block-theme-child-with-fluid-typography',
'block_name' => 'test/background-rules-are-output',
'background_settings' => array(
Expand All @@ -131,7 +131,6 @@ public function data_background_block_support() {
'background_style' => array(
'backgroundImage' => array(
'url' => 'https://example.com/image.jpg',
'id' => 123,
),
),
'expected_wrapper' => '<div class="has-background" style="background-image:url(&#039;https://example.com/image.jpg&#039;);background-size:cover;">Content</div>',
Expand All @@ -158,7 +157,6 @@ public function data_background_block_support() {
'background_style' => array(
'backgroundImage' => array(
'url' => 'https://example.com/image.jpg',
'id' => 123,
),
'backgroundRepeat' => 'no-repeat',
'backgroundSize' => 'contain',
Expand All @@ -176,7 +174,6 @@ public function data_background_block_support() {
'background_style' => array(
'backgroundImage' => array(
'url' => 'https://example.com/image.jpg',
'id' => 123,
),
),
'expected_wrapper' => '<div class="wp-block-test has-background" style="color: red;background-image:url(&#039;https://example.com/image.jpg&#039;);background-size:cover;">Content</div>',
Expand All @@ -191,7 +188,6 @@ public function data_background_block_support() {
'background_style' => array(
'backgroundImage' => array(
'url' => 'https://example.com/image.jpg',
'id' => 123,
),
),
'expected_wrapper' => '<div class="wp-block-test has-background" style="color: red;font-size: 15px;background-image:url(&#039;https://example.com/image.jpg&#039;);background-size:cover;">Content</div>',
Expand All @@ -206,7 +202,6 @@ public function data_background_block_support() {
'background_style' => array(
'backgroundImage' => array(
'url' => 'https://example.com/image.jpg',
'id' => 123,
),
),
'expected_wrapper' => '<div>Content</div>',
Expand Down

1 comment on commit 6de3f66

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 6de3f66.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/10413383817
📝 Reported issues:

Please sign in to comment.