wp-graphql / wpgraphql-acf

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

Tests failing for field groups assigned to Block Types #230

Closed jasonbahl closed 4 months ago

jasonbahl commented 4 months ago

Description

When running tests for fields on a field group assigned to a Block Type, an error is returned and the test fails.

CleanShot 2024-07-24 at 13 03 14

When trying to manually reproduce, the behavior works as expected and fields can be queried on blocks.

Steps to reproduce

  1. set the .env.testing file to run a specific SUITE that tests a field on a Block Type (i.e. wpunit:AcfeAdvancedLinkFieldTest:testFieldOnAcfBlock)
  2. run the test in DEBUG mode
  3. see the error and the failed test(s)

CleanShot 2024-07-24 at 13 03 14

PHP or JSON export of the ACF Field Group(s)

No response

Additional context

No response

WPGraphQL Version

1.27

WPGraphQL For ACF Version

2.4.0

ACF (Advanced Custom Fields) Version. Free or Pro?

6.3.1.2 PRO

WordPress Version

6.6.1

PHP Version

8.1

Additional enviornment details

No response

Please confirm that you have searched existing issues in the repo.

Please confirm that you have disabled ALL plugins except for WPGraphQL, WPGraphQL For ACF, ACF, etc.