Adds test confirming that querying a parent category's products
includes products from child and grandchild categories. The issue
was reported on v0.12.0 and is not reproducible on the current
codebase.
- Fix coupon productCategories and excludedProductCategories connections
to convert term_ids to term_taxonomy_ids before querying, resolving
failures when term_id and term_taxonomy_id differ (shared terms across
taxonomies)
- Remove dead WC post type taxonomy connection loop that was skipping
products/variations and had no effect on remaining post types
- Remove unused WPGraphQL and WP_GraphQL_WooCommerce imports
- Add coupon category connection test with mismatched term IDs and
exclude filter validation
- Add product category test with mismatched term_id/term_taxonomy_id
regression coverage
* feat: Add support for brands (#918)
* feat: add product brand support with where args, taxonomy filter, and taxonomy mutation input fields
- Register product_brand taxonomy with WPGraphQL (fix indentation from #964)
- Add productBrand/productBrandIn/productBrandNotIn/productBrandId/productBrandIdIn/productBrandIdNotIn
where args on products connection
- Add product_brand to taxonomy args map and case statements in product connection resolver
- Register additional input fields (display, menuOrder, imageId) on
CreateProductCategoryInput and UpdateProductCategoryInput mutations
- Split ProductTaxonomyQueriesTest into ProductCategoryQueriesTest,
ProductTagQueriesTest, ProductCategoryMutationsTest, ProductTagMutationsTest
- Add ProductBrandQueriesTest with 8 tests covering queries, connections,
hierarchy, where args, taxonomy filter, and CRUD mutations
---------
Co-authored-by: Geoff Taylor <geoff@axistaylor.com>