Skip to content

Commit

Permalink
Update tests for latest WP
Browse files Browse the repository at this point in the history
  • Loading branch information
PatelUtkarsh committed Apr 27, 2022
1 parent c2ee1cb commit af609be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugin/tests/phpunit/php/class-test-block-types.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ function( $block_name ) use ( $blocks ) {
$metadata = json_decode( file_get_contents( $block_json ), true ); // phpcs:ignore

$this->assertEquals( $metadata['category'], $block->category );
unset( $block->attributes['lock'] );
$this->assertEquals( $metadata['attributes'], $block->attributes );

if ( isset( $metadata['supports'] ) ) {
Expand Down

0 comments on commit af609be

Please sign in to comment.