Skip to content

Use Magento Sales APIs for email test shipments and credit memos - #1

Merged
jissereitsma merged 2 commits into
mainfrom
copilot/fix-magento-phpstan-job
Nov 22, 2026
Merged

jissereitsma merged 2 commits into
mainfrom
copilot/fix-magento-phpstan-job

Conversation

@jissereitsma

@jissereitsma jissereitsma commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

The Magento PHPStan job failed because the resolved QuoteExtended 0.0.2 test trait does not define createShipment() or createCreditmemo().

  • Email integration tests: Replace those missing trait calls with local typed helpers that create and retrieve the entities through Magento’s Sales APIs:
    $shipmentId = $this->om()->get(ShipOrderInterface::class)->execute((int)$order->getEntityId());
    return $this->om()->get(ShipmentRepositoryInterface::class)->get((int)$shipmentId);

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
@jissereitsma jissereitsma changed the title [WIP] Fix failing GitHub Actions job Magento PHPStan Use Magento Sales APIs for email test shipments and credit memos Nov 14, 2026
@jissereitsma
jissereitsma marked this pull request as ready for review November 22, 2026 13:21
@jissereitsma
jissereitsma merged commit 9ae6a27 into main Nov 22, 2026
10 of 12 checks passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-22T13:22:12.073863Z c580b65 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants