Skip to content

Commit 37c88ca

Browse files
Tests: Expect the custom color for a null preset, and drop the style engine cases.
1 parent a462323 commit 37c88ca

1 file changed

Lines changed: 2 additions & 21 deletions

File tree

‎tests/phpunit/tests/block-supports/wpGetColorClassesAndStyles.php‎

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function data_get_color_classes_and_styles() {
6464
'class' => 'has-text-color has-contrast-color',
6565
),
6666
),
67-
'null preset wins over custom' => array(
67+
'null preset uses custom text' => array(
6868
'block_attributes' => array(
6969
'textColor' => null,
7070
'style' => array(
@@ -75,26 +75,7 @@ public function data_get_color_classes_and_styles() {
7575
),
7676
'expected' => array(
7777
'class' => 'has-text-color',
78-
),
79-
),
80-
'numeric' => array(
81-
'block_attributes' => array(
82-
'textColor' => 1,
83-
),
84-
'expected' => array(
85-
'class' => 'has-text-color has-1-color',
86-
),
87-
),
88-
'zero' => array(
89-
'block_attributes' => array(
90-
'style' => array(
91-
'color' => array(
92-
'text' => '0',
93-
),
94-
),
95-
),
96-
'expected' => array(
97-
'style' => 'color:0;',
78+
'style' => 'color:#d92828;',
9879
),
9980
),
10081
'empty' => array(

0 commit comments

Comments
 (0)