Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Mar 29, 2023
1 parent c9a3f1f commit b8278ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phpunit/blocks/render-block-cover-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Tests_Blocks_Render_Cover extends WP_UnitTestCase {
/**
* Post object.
*
* @var array
* @var object
*/
protected static $post;

Expand Down Expand Up @@ -76,7 +76,7 @@ public function test_gutenberg_render_block_core_cover() {
'minHeight' => '100px',
);

$content = '<div class="wp-block-cover"><span></span><div class="wp-block-cover__inner-container"></div></div>';
$content = '<div class="wp-block-cover" style="min-height:100px"><span></span><div class="wp-block-cover__inner-container"></div></div>';
$rendered = gutenberg_render_block_core_cover( $attributes, $content );

$this->assertStringContainsString( wp_get_attachment_image_url( self::$attachment_id, 'full' ), $rendered );
Expand Down

0 comments on commit b8278ba

Please sign in to comment.