• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wp-graphql / wp-graphql-woocommerce / 28450327807
92%

Build:
DEFAULT BRANCH: develop
Ran 30 Jun 2026 02:19PM UTC
Jobs 1
Files 237
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

30 Jun 2026 02:03PM UTC coverage: 91.801% (+0.001%) from 91.8%
28450327807

push

github

web-flow
fix: resolve product variation type when the node is a base Post model (#1020)

* fix: resolve product variation type when the node is a base Post model

A cart item's variation node can be loaded through the generic post loader (e.g. under Polylang, which doesn't manage the product_variation post-type), arriving as a base \WPGraphQL\Model\Post that has no get_type(). resolve_product_variation_type() then fatals. Fall back to resolving the variation's product type from its ID via wc_get_product() when get_type() isn't callable.

* chore: remove stray graphql_debug() from ProductWithPricing price resolver

* test: disable Customer Note email so order-note tests aren't polluted by the WC email-sent note

* test: cover product-variation type fallback when the node loads as a base Post model

6 of 7 new or added lines in 1 file covered. (85.71%)

18531 of 20186 relevant lines covered (91.8%)

153.15 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
78.79
0.33% includes/class-post-types.php
Jobs
ID Job ID Ran Files Coverage
1 28450327807.1 30 Jun 2026 02:19PM UTC 237
91.8
GitHub Action Run
Source Files on build 28450327807
  • Tree
  • List 237
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • e3cf9443 on github
  • Prev Build on develop (#27807934877)
  • Next Build on develop (#28451172886)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc