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 5515c16 commit 2a78eb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions includes/Blocks/Block.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ 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 Expand Up @@ -427,7 +429,6 @@ private function resolve_block_attributes_recursive( $attributes, string $html,
$result[ $key ] = $attributes[ $key ] ?? $default;
}
}

return $result;
}

Expand Down
1 change: 0 additions & 1 deletion tests/unit/CoreVideoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ public function test_retrieve_core_video_attributes() {
}
';
$actual = graphql( array( 'query' => $query ) );
print_r(get_post( $this->post_id ));
$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 2a78eb6

Please sign in to comment.