Skip to content

Commit

Permalink
chore: wip debug
Browse files Browse the repository at this point in the history
  • Loading branch information
theodesp committed Aug 14, 2024
1 parent 2a78eb6 commit 4fa7440
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions includes/Blocks/Block.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,6 @@ private function register_block_attributes_as_fields(): void {
'fields' => $block_attribute_fields,
]
);
if ($this->type_name === 'CoreTable') {
print_r($block_attributes);
}
register_graphql_field(
$this->type_name,
'attributes',
Expand Down
1 change: 1 addition & 0 deletions tests/unit/CoreTableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public function test_retrieve_core_table_attribute_fields() {
nodes {
editorBlocks(flat: true) {
name
renderedHtml
...on CoreTable {
attributes {
caption
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/CoreVideoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,15 @@ public function test_retrieve_core_video_attributes() {
databaseId
editorBlocks(flat: true) {
name
renderedHTML
...CoreVideoBlockFragment
}
}
}
}
';
$actual = graphql( array( 'query' => $query ) );
print_r($actual);
$node = $actual['data']['posts']['nodes'][0];

// Verify that the ID of the first post matches the one we just created.
Expand Down

0 comments on commit 4fa7440

Please sign in to comment.