Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
madhusudhand authored and colinduwe committed May 25, 2024
1 parent 2d66dc9 commit c7355fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/phpunit/tests/block-supports/shadow.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ private function register_shadow_block_with_support( $block_name, $supports = ar
* @param string $value Shadow style value for style attribute object.
* @param array $expected Expected shadow block support styles.
*/
public function test_gutenberg_apply_shadow_support( $support, $value, $expected ) {
public function test_wp_apply_shadow_support( $support, $value, $expected ) {
$block_type = self::register_shadow_block_with_support(
'test/shadow-block',
array( 'shadow' => $support )
);
$block_attrs = array( 'style' => array( 'shadow' => $value ) );
$actual = gutenberg_apply_shadow_support( $block_type, $block_attrs );
$actual = wp_apply_shadow_support( $block_type, $block_attrs );

$this->assertSame( $expected, $actual );
}
Expand Down

0 comments on commit c7355fa

Please sign in to comment.