Skip to content

Commit

Permalink
fix : asserting top level gradient preset
Browse files Browse the repository at this point in the history
  • Loading branch information
Ta5r committed Sep 23, 2024
1 parent 7e9f309 commit c3bcea4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unit/CoreSeparatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public function test_retrieve_core_separator_attribute_fields(): void {
'backgroundColor' => null,
'className' => 'is-style-dots',
'cssClassName' => 'wp-block-separator alignwide has-alpha-channel-opacity',
'gradient' => null, // @todo: Getting null, but should be some valid gradient value!!
'gradient' => null,
'opacity' => 'alpha-channel',
'style' => wp_json_encode(
[
Expand All @@ -149,7 +149,7 @@ public function test_retrieve_core_separator_attribute_fields(): void {
*/
public function test_retrieve_core_separator_attributes(): void {
$block_content = '
<!-- wp:separator {"backgroundColor":"accent-4"} -->
<!-- wp:separator {"gradient":"gradient-10","backgroundColor":"accent-4"} -->
<hr class="wp-block-separator has-text-color has-accent-4-color has-alpha-channel-opacity has-accent-4-background-color has-background" id="test-anchor"/>
<!-- /wp:separator -->
';
Expand Down Expand Up @@ -184,7 +184,7 @@ public function test_retrieve_core_separator_attributes(): void {
'backgroundColor' => 'accent-4', // Previously untested.
'className' => null,
'cssClassName' => 'wp-block-separator has-text-color has-accent-4-color has-alpha-channel-opacity has-accent-4-background-color has-background',
'gradient' => null,
'gradient' => 'gradient-10', // Previously untested.
'opacity' => 'alpha-channel',
'style' => null,
'lock' => null,
Expand Down

0 comments on commit c3bcea4

Please sign in to comment.