From a37469717e9314195346bcf7475c1f74ee0d239e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Gomes?= Date: Tue, 3 Sep 2024 10:19:53 +0100 Subject: [PATCH] Update PHP tests to match new expected render --- .../blocks/render-block-media-text-test.php | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/phpunit/blocks/render-block-media-text-test.php b/phpunit/blocks/render-block-media-text-test.php index 94c184408c89f..2132f32a619cb 100644 --- a/phpunit/blocks/render-block-media-text-test.php +++ b/phpunit/blocks/render-block-media-text-test.php @@ -81,15 +81,15 @@ public function test_render_block_core_media_text_featured_image() { $rendered = gutenberg_render_block_core_media_text( $attributes, $content ); $this->assertStringContainsString( ' true, 'imageFill' => true, ); $rendered = gutenberg_render_block_core_media_text( $attributes, $content ); - $this->assertStringContainsString( 'background-image:url(' . wp_get_attachment_image_url( self::$attachment_id, 'full' ) . ')', $rendered ); - $this->assertStringNotContainsString( 'assertStringNotContainsString( 'background-image:', $rendered ); + $this->assertStringContainsString( 'assertStringContainsString( ' true, 'imageFill' => true, ); $rendered = gutenberg_render_block_core_media_text( $attributes, $content ); - $this->assertStringContainsString( 'background-image:url(' . wp_get_attachment_image_url( self::$attachment_id, 'full' ) . ')', $rendered ); - $this->assertStringNotContainsString( 'assertStringNotContainsString( 'background-image:', $rendered ); + $this->assertStringContainsString( 'assertStringContainsString( ' true, 'mediaPosition' => 'right', 'imageFill' => true, ); $rendered = gutenberg_render_block_core_media_text( $attributes, $content ); - $this->assertStringContainsString( 'background-image:url(' . wp_get_attachment_image_url( self::$attachment_id, 'full' ) . ')', $rendered ); - $this->assertStringNotContainsString( 'assertStringNotContainsString( 'background-image:', $rendered ); + $this->assertStringContainsString( 'assertStringContainsString( ' true, 'mediaPosition' => 'right', @@ -173,7 +173,7 @@ public function test_render_block_core_media_text_featured_image_media_on_right_ ); $rendered = gutenberg_render_block_core_media_text( $attributes, $content ); - $this->assertStringContainsString( 'background-image:url(' . wp_get_attachment_image_url( self::$attachment_id, 'full' ) . ')', $rendered ); - $this->assertStringNotContainsString( 'assertStringNotContainsString( 'background-image:', $rendered ); + $this->assertStringContainsString( '