Skip to content

test(gateway): write unit tests for Base_Gateway (inc/gateways/class-base-gateway.php — 0% coverage, ~956 lines) #712

@superdav42

Description

@superdav42

Task

Write unit tests for the Base_Gateway class (inc/gateways/class-base-gateway.php).

This is the abstract base class for all payment gateways. It has ~956 lines and 0% test coverage.

Acceptance Criteria

  • Test file created at tests/WP_Ultimo/Gateways/Base_Gateway_Test.php
  • Tests cover: constructor/init, process_checkout(), process_refund(), get_public_key(), handle_webhook(), get_checkout_fields(), validate_fields(), add_payment_gateway_hooks()
  • All tests pass CI
  • Coverage meaningfully increased for this class

Context

Part of ongoing test coverage improvement initiative. Base_Gateway is the foundation for all payment processing — high business risk if untested.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions