We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51ca21a commit ed4a449Copy full SHA for ed4a449
tests/wpunit/FieldTypes/TaxonomyFieldTest.php
@@ -95,6 +95,16 @@ public function get_expected_block_fragment_response() {
95
96
public function testQueryTaxononomyFieldOnBlock() {
97
98
+ // if ACF PRO is not active, skip the test
99
+ if ( ! defined( 'ACF_PRO' ) ) {
100
+ $this->markTestSkipped( 'ACF Pro is not active so this test will not run.' );
101
+ }
102
+
103
+ // If WPGraphQL Content Blocks couldn't be activated, skip
104
+ if ( ! defined( 'WPGRAPHQL_CONTENT_BLOCKS_DIR' ) ) {
105
+ $this->markTestSkipped( 'This test is skipped when WPGraphQL Content Blocks is not active' );
106
107
108
acf_register_block_type([
109
'name' => 'block_with_category_field',
110
'title' => 'Block with Category Field',
0 commit comments