Skip to content

Commit 3d6d6e0

Browse files
ramonjdCopilot
andcommitted
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 669efcf commit 3d6d6e0

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎phpunit/block-supports/background-test.php‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,10 +312,12 @@ public function test_verse_background_gradient_and_image_are_combined() {
312312

313313
$actual = gutenberg_render_background_support( '<pre class="wp-block-verse">Verse</pre>', $block );
314314

315-
$this->assertSame(
316-
'<pre class="wp-block-verse has-background" style="background-image:linear-gradient(135deg,rgb(255,0,0) 0%,rgb(0,0,255) 100%), url(' . $apos . 'https://example.com/image.jpg' . $apos . ');background-size:cover">Verse</pre>',
315+
$this->assertStringContainsString( 'class="wp-block-verse has-background"', $actual );
316+
$this->assertStringContainsString(
317+
'style="background-image:linear-gradient(135deg,rgb(255,0,0) 0%,rgb(0,0,255) 100%), url(' . $apos . 'https://example.com/image.jpg' . $apos . ');background-size:cover;"',
317318
$actual
318319
);
320+
$this->assertStringNotContainsString( 'background:linear-gradient', $actual );
319321
}
320322

321323
/**

0 commit comments

Comments
 (0)