Skip to content

Commit

Permalink
Update test message
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed Feb 23, 2024
1 parent 7cf2f26 commit 31b09d8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/phpunit/tests/theme/wpThemeJson.php
Original file line number Diff line number Diff line change
Expand Up @@ -5276,8 +5276,15 @@ public function test_resolve_variables() {
* As with wp_get_global_styles(), WP_Theme_JSON::resolve_variables may be called with merged data from
* WP_Theme_JSON_Resolver. WP_Theme_JSON_Resolver::get_block_data() sets blockGap for supported blocks to `null` if the value is not defined.
*/
$this->assertNull( $styles['blocks']['core/post-template']['spacing']['blockGap'], 'core/post-template block: blockGap' );
$this->assertEquals( $spacing, $styles['blocks']['core/columns']['spacing']['blockGap'], 'core/columns block: blockGap' );
$this->assertNull(
$styles['blocks']['core/post-template']['spacing']['blockGap'],
'Blocks: Post Template spacing.blockGap should be null'
);
$this->assertEquals(
$spacing,
$styles['blocks']['core/columns']['spacing']['blockGap'],
'Blocks: Columns spacing.blockGap should match'
);
}

/**
Expand Down

0 comments on commit 31b09d8

Please sign in to comment.