Skip to content

Commit

Permalink
fix: Fix the remaining annotations and phpcbf
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutoshgautams committed Sep 19, 2024
1 parent 7301ed9 commit 52bdf70
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/unit/CoreHeadingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public function test_retrieve_core_heading_with_colors_and_alignment() {

$this->assertEquals(
[
'align' => 'wide', // Previously untested
'align' => 'wide', // @todo: This is not returning correctly.
'anchor' => null,
'backgroundColor' => null,
'className' => null,
Expand All @@ -192,7 +192,7 @@ public function test_retrieve_core_heading_with_colors_and_alignment() {
'text' => '#ffffff',
],
]),
'textAlign' => 'right',
'textAlign' => 'right', // @todo: This is not returning correctly.
'textColor' => null,
],
$attributes
Expand Down Expand Up @@ -226,13 +226,13 @@ public function test_retrieve_core_heading_with_font_and_anchor() {
$this->assertEquals(
[
'align' => null,
'anchor' => 'custom-id',
'anchor' => 'custom-id', // Previously untested
'backgroundColor' => null,
'className' => null,
'content' => 'Custom Font Heading',
'cssClassName' => 'wp-block-heading',
'fontFamily' => null, // Previously untested
'fontSize' => null,
'fontFamily' => 'Arial', // Previously untested
'fontSize' => '32px', // Previously untested
'gradient' => null,
'level' => 2.0,
'lock' => null,
Expand Down Expand Up @@ -284,7 +284,7 @@ public function test_retrieve_core_heading_with_gradient() {
'cssClassName' => 'wp-block-heading has-background',
'fontFamily' => null,
'fontSize' => null,
'gradient' => null, // Previously untested
'gradient' => 'linear-gradient(135deg,rgb(6,147,227) 0%,rgb(155,81,224) 100%)', // Previously untested
'level' => 2.0,
'lock' => null,
'placeholder' => null,
Expand Down Expand Up @@ -328,7 +328,7 @@ public function test_retrieve_core_heading_with_background_color() {
[
'align' => null,
'anchor' => null,
'backgroundColor' => 'vivid-red-background-color',
'backgroundColor' => 'vivid-red-background-color', // Previously untested
'className' => null,
'content' => 'Heading with Background Color',
'cssClassName' => 'wp-block-heading has-vivid-red-background-color has-background',
Expand Down Expand Up @@ -386,7 +386,7 @@ public function test_retrieve_core_heading_with_text_color() {
'placeholder' => null,
'style' => null,
'textAlign' => null,
'textColor' => 'vivid-red',
'textColor' => 'vivid-red', // Previously untested
],
$attributes
);
Expand Down Expand Up @@ -425,7 +425,7 @@ public function test_retrieve_core_heading_with_font_size() {
'content' => 'Heading with Font Size',
'cssClassName' => 'wp-block-heading has-large-font-size',
'fontFamily' => null,
'fontSize' => 'large',
'fontSize' => 'large', // Previously untested
'gradient' => null,
'level' => 2.0,
'lock' => null,
Expand Down Expand Up @@ -467,7 +467,7 @@ public function test_retrieve_core_heading_with_class_name() {
'align' => null,
'anchor' => null,
'backgroundColor' => null,
'className' => 'custom-class',
'className' => 'custom-class', // Previously untested
'content' => 'Heading with Custom Class',
'cssClassName' => 'wp-block-heading custom-class',
'fontFamily' => null,
Expand Down

0 comments on commit 52bdf70

Please sign in to comment.