Skip to content

Conversation

@himanshu-opn
Copy link
Collaborator

Description

MIT-3392-code-coverage code coverage for all files.

More information (if any)

https://opn-ooo.atlassian.net/browse/MIT-3392

@rosle rosle requested a review from Copilot January 30, 2026 02:57
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds comprehensive unit test coverage for various components of the Omise Payment module. The changes include new test files for controllers, models, observers, plugins, helpers, and other components to improve code coverage.

Changes:

  • Added extensive unit tests across multiple components (controllers, models, observers, plugins, gateways, helpers, blocks)
  • Created stub files for Magento framework classes to support testing
  • Fixed a bug in ConfigSectionPaymentPlugin to prevent duplicate constant definition
  • Changed Omise CDN URL from production to staging (appears unintentional)

Reviewed changes

Copilot reviewed 74 out of 74 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
view/frontend/layout/checkout_index_index.xml Changed Omise.js CDN URL from production to staging
Test/Unit/Stubs/* Added stub interfaces and classes for Magento framework dependencies
Test/Unit/Setup/UpgradeDataTest.php Added unit tests for UpgradeData setup class
Test/Unit/Service/CreditMemoServiceTest.php Added unit tests for CreditMemoService
Test/Unit/Plugin/* Added unit tests for various plugin classes
Test/Unit/Observer/* Added unit tests for observer classes including webhook observers
Test/Unit/Model/* Added unit tests for model classes including API models
Test/Unit/Helper/* Added and updated unit tests for helper classes
Test/Unit/Gateway/* Added unit tests for gateway validators, handlers, and HTTP clients
Test/Unit/Controller/* Added unit tests for controller classes
Test/Unit/ConfigTest.php Added additional test methods for Config class
Test/Unit/Block/* Added unit tests for block classes
Plugin/ConfigSectionPaymentPlugin.php Fixed duplicate constant definition issue

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

<head>
<css src="Omise_Payment::css/styles.css" />
<script src="https://cdn.omise.co/omise.js" src_type="url" />
<script src="https://cdn.staging-omise.co/omise.js" src_type="url" />
Copy link

Copilot AI Jan 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The URL is being changed from production (cdn.omise.co) to staging (cdn.staging-omise.co). This change appears to be unintentional for a code coverage PR and should likely be reverted unless this is specifically intended for a staging/test environment.

Copilot uses AI. Check for mistakes.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

already same url use of staging.

@sonarqubecloud
Copy link

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.

1 participant