@@ -85,6 +85,7 @@ className
8585 name
8686 parentClientId
8787 renderedHtml
88+ type
8889 ... on CoreListItem {
8990 ...CoreListItemBlockFragment
9091 }
@@ -93,6 +94,7 @@ className
9394 name
9495 parentClientId
9596 renderedHtml
97+ type
9698 ...CoreListBlockFragment
9799 }
98100 }
@@ -149,6 +151,7 @@ public function test_retrieve_core_list_fields_and_attributes(): void {
149151 $ this ->assertNotEmpty ( $ block ['cssClassNames ' ], 'The cssClassNames should be present ' );
150152
151153 $ this ->assertEquals ( 'core/list ' , $ block ['name ' ], 'The block name should be core/list ' );
154+ $ this ->assertEquals ( 'CoreList ' , $ block ['type ' ], 'The block type should be CoreList ' );
152155 $ this ->assertEmpty ( $ block ['parentClientId ' ], 'There should be no parentClientId ' );
153156 $ this ->assertNotEmpty ( $ block ['renderedHtml ' ], 'The renderedHtml should be present ' );
154157
@@ -184,6 +187,7 @@ public function test_retrieve_core_list_fields_and_attributes(): void {
184187 $ this ->assertEmpty ( $ block ['innerBlocks ' ][0 ]['cssClassNames ' ], 'The cssClassNames should be present ' );
185188 $ this ->assertNotEmpty ( $ block ['innerBlocks ' ][0 ]['clientId ' ], 'The clientId should be present ' );
186189 $ this ->assertEquals ( 'core/list-item ' , $ block ['innerBlocks ' ][0 ]['name ' ], 'The block name should be core/list-item ' );
190+ $ this ->assertEquals ( 'CoreListItem ' , $ block ['innerBlocks ' ][0 ]['type ' ], 'The block type should be CoreListItem ' );
187191 $ this ->assertNotEmpty ( $ block ['innerBlocks ' ][0 ]['renderedHtml ' ], 'The renderedHtml should be present ' );
188192
189193 $ this ->assertEquals (
@@ -250,6 +254,7 @@ public function test_retrieve_core_list_attributes_typography_and_lock(): void {
250254 $ block = $ actual ['data ' ]['post ' ]['editorBlocks ' ][0 ];
251255
252256 $ this ->assertEquals ( 'core/list ' , $ block ['name ' ], 'The block name should be core/list ' );
257+ $ this ->assertEquals ( 'CoreList ' , $ block ['type ' ], 'The block type should be CoreList ' );
253258
254259 $ this ->assertEquals (
255260 [
@@ -318,6 +323,7 @@ public function test_retrieve_core_list_attributes_ordered_and_reversed(): void
318323 $ block = $ actual ['data ' ]['post ' ]['editorBlocks ' ][0 ];
319324
320325 $ this ->assertEquals ( 'core/list ' , $ block ['name ' ], 'The block name should be core/list ' );
326+ $ this ->assertEquals ( 'CoreList ' , $ block ['type ' ], 'The block type should be CoreList ' );
321327
322328 $ this ->assertEquals (
323329 [
@@ -383,6 +389,7 @@ public function test_retrieve_core_list_attributes_start_and_styles(): void {
383389 $ block = $ actual ['data ' ]['post ' ]['editorBlocks ' ][0 ];
384390
385391 $ this ->assertEquals ( 'core/list ' , $ block ['name ' ], 'The block name should be core/list ' );
392+ $ this ->assertEquals ( 'CoreList ' , $ block ['type ' ], 'The block type should be CoreList ' );
386393
387394 $ this ->assertEquals (
388395 [
@@ -653,6 +660,7 @@ className
653660 editorBlocks( flat: false ) {
654661 clientId
655662 name
663+ type
656664 parentClientId
657665 innerBlocks {
658666 ... on CoreListItem {
0 commit comments