wp-graphql / wpgraphql-acf

Re-architecture of WPGraphQL for ACF
GNU General Public License v3.0
91 stars 13 forks source link

fix: block type tests failing #231

Closed jasonbahl closed 4 months ago

jasonbahl commented 4 months ago

What does this implement/fix? Explain your changes.

This ensures that Blocks have an ID when resolving and assigns a unique ID (mimicking clientId behavior) if a block does not have an ID.

Does this close any currently open issues?

closes #230

Any relevant logs, error output, GraphiQL screenshots, etc?

BEFORE

Screenshot of just the AcfeAdvancedLinkFieldTest.php:testFieldOnAcfBlock test failing

CleanShot 2024-07-24 at 13 11 05

AFTER

Screenshot of all wpunit tests passing

CleanShot 2024-07-24 at 13 10 20