From 45cde663b5597dca883cf2628f460778acc80de9 Mon Sep 17 00:00:00 2001 From: Ta5r Date: Tue, 24 Sep 2024 13:49:40 +0530 Subject: [PATCH] chore : rephrase comments --- .changeset/empty-pants-live.md | 2 +- tests/unit/CoreListTest.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.changeset/empty-pants-live.md b/.changeset/empty-pants-live.md index 49edd8d5..a4af4597 100644 --- a/.changeset/empty-pants-live.md +++ b/.changeset/empty-pants-live.md @@ -2,4 +2,4 @@ "@wpengine/wp-graphql-content-blocks": patch --- -tests : Core list blocks and core list-item blocks +tests : Add tests for `CoreList` and `CoreListItem` blocks. \ No newline at end of file diff --git a/tests/unit/CoreListTest.php b/tests/unit/CoreListTest.php index c4c511d2..62626385 100644 --- a/tests/unit/CoreListTest.php +++ b/tests/unit/CoreListTest.php @@ -103,7 +103,7 @@ className /** * Test case for retrieving core list block fields and attributes. * - * Covers : 'anchor', 'backgroundColor', 'className', and 'cssClassName'. + * Covers : 'anchor', 'backgroundColor', 'className', 'cssClassName' and 'values'. */ public function test_retrieve_core_list_fields_and_attribute(): void { $block_content = ' @@ -330,7 +330,7 @@ public function test_retrieve_core_list_attributes_ordered_and_reversed(): void /** * Test case for retrieving core list block fields and attributes. * - * Covers : 'start', 'style', and 'textColor'. + * Covers : 'start', 'style', 'textColor' and 'type'. */ public function test_retrieve_core_list_attributes_start_and_styles(): void { $block_content = ' @@ -557,7 +557,7 @@ className /** * Test case for retrieving core list item block fields and attributes. * - * Covers : 'placeholder' and 'style' attribute. + * Covers : 'style' attribute. */ public function test_retrieve_core_list_item_untested_attributes(): void { // fontFamily, fontSize and style are only supported in WP 6.2+. @@ -682,7 +682,7 @@ className 'fontFamily' => null, 'fontSize' => null, 'lock' => null, - 'placeholder' => null, // Previously untested. + 'placeholder' => null, 'style' => wp_json_encode( [ 'typography' => [ 'textDecoration' => 'underline' ] ] ), // Previously untested. ], $block['attributes'],