Skip to content

Commit

Permalink
fixed failed unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nk-o committed Nov 19, 2024
1 parent 1a256da commit 062f5ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/phpunit/block-render-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ public function add_test_block( $attrs = array() ) {
lazyblocks()->add_block( array_merge(
array(
'slug' => $block_slug,
'supports' => array(
'align' => false,
),
),
$attrs
) );
Expand All @@ -29,10 +32,6 @@ public function test_simple_block_render() {
'code' => array(
'frontend_html' => '<p>Test</p>',
),
'align' => 'none',
'supports' => array(
'align' => array( 'none' ),
),
) );

$this->assertEquals(
Expand All @@ -48,7 +47,6 @@ public function test_empty_block_render() {
'code' => array(
'frontend_html' => '',
),
'align' => 'none',
) );

// Should not render anything.
Expand All @@ -69,7 +67,6 @@ public function test_block_render_attributes() {
'code' => array(
'frontend_html' => '<p>Test</p>',
),
'align' => 'none',
) );

$this->assertEquals(
Expand Down
3 changes: 3 additions & 0 deletions tests/phpunit/controls/select-control-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ public function add_test_block( $attrs = array() ) {
lazyblocks()->add_block( array_merge(
array(
'slug' => $block_slug,
'supports' => array(
'align' => false,
),
),
$attrs
) );
Expand Down

0 comments on commit 062f5ae

Please sign in to comment.