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

wp-graphql / wp-graphql-woocommerce / 23475366929
89%

Build:
DEFAULT BRANCH: develop
Ran 24 Mar 2026 06:05AM UTC
Jobs 1
Files 233
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

24 Mar 2026 05:56AM UTC coverage: 84.067% (+0.01%) from 84.055%
23475366929

push

github

web-flow
devops: add createOrder stock reduction test (#990)

* devops: add createOrder stock reduction test

Adds test confirming that createOrder with isPaid: true correctly
reduces stock quantity. Tests COD (→ COMPLETED) and BACS (→ PROCESSING)
payment methods, and documents that setting status explicitly alongside
isPaid bypasses WooCommerce's stock reduction hooks. Users should rely
on isPaid alone and let WooCommerce determine the correct order status.

* devops: migrate OrderMutationsTest to factories and add stock reduction test

- Replace deprecated test helper classes with factory equivalents
- Replace wp_set_current_user with loginAsShopManager/loginAsCustomer
- Remove codecept_debug calls (graphql() already logs responses)
- Rename $actual to $response throughout
- Move order creation from setUp to individual tests using createNew()
- Enable woocommerce_manage_stock and payment gateways in setUp
- Add stock reduction test confirming createOrder with isPaid: true
  reduces stock, and documents that setting status explicitly alongside
  isPaid bypasses WooCommerce's stock reduction hooks

14230 of 16927 relevant lines covered (84.07%)

109.43 hits per line

Jobs
ID Job ID Ran Files Coverage
1 23475366929.1 24 Mar 2026 06:05AM UTC 233
84.07
GitHub Action Run
Source Files on build 23475366929
  • Tree
  • List 233
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 9dbd9a00 on github
  • Prev Build on develop (#23472852426)
  • Next Build on develop (#23477357490)
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