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

wp-graphql / wp-graphql-woocommerce / 23802452846
92%

Build:
DEFAULT BRANCH: develop
Ran 31 Mar 2026 02:39PM 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

31 Mar 2026 02:24PM UTC coverage: 91.778% (+0.03%) from 91.753%
23802452846

push

github

web-flow
feat: Implements `refund` mutations (#906)

* chore: New feature stubbed out

* feat: Implement createRefund and deleteRefund mutations

createRefund: Creates a refund on an order with amount, reason,
optional payment gateway refund, restock, and meta data support.
Requires edit_shop_orders capability.

deleteRefund: Deletes a refund by ID with optional force flag.
Returns the deleted refund data and parent order.
Requires delete_shop_orders capability.

Both mutations include before/after action hooks for extensibility
and follow the WC REST API refund controller pattern.

Closes #17

* chore: Add PHPStan type annotation for wc_get_order in Refund_Delete

* devops: Add guard tests for deleteRefund mutation

Test invalid refund ID, order ID passed instead of refund ID,
with expectedErrorMessage assertions confirming error messages.

148 of 156 new or added lines in 4 files covered. (94.87%)

18484 of 20140 relevant lines covered (91.78%)

149.02 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
93.62
includes/mutation/class-refund-create.php
2
96.55
includes/mutation/class-refund-delete.php
Jobs
ID Job ID Ran Files Coverage
1 23802452846.1 31 Mar 2026 02:39PM UTC 237
91.78
GitHub Action Run
Source Files on build 23802452846
  • Tree
  • List 237
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 2107c7e0 on github
  • Prev Build on develop (#23799372604)
  • Next Build on develop (#23804512507)
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