[MokoJoomMembership] [FEATURE] PHPUnit test suite setup and core tests #43

Open
opened 2026-06-02 19:35:51 +00:00 by jmiller · 1 comment
Owner

Migrated from MokoJoomMembership#67

Summary

No tests exist. Per Coding-Standards, PHPUnit tests are a CI gate.

Required Setup

  • phpunit.xml configuration
  • tests/ directory structure
  • Composer dev dependencies for PHPUnit

Priority Test Coverage

  • SubscriptionService lifecycle methods
  • AccessService grant/revoke
  • CouponService validation and discount calculation
  • Table::check() validation for each entity
  • PaymentGateway interface contract

Standard Reference

Coding-Standards requires PHPUnit as CI Gate 2.

> Migrated from MokoJoomMembership#67 ## Summary No tests exist. Per Coding-Standards, PHPUnit tests are a CI gate. ## Required Setup - `phpunit.xml` configuration - `tests/` directory structure - Composer dev dependencies for PHPUnit ## Priority Test Coverage - SubscriptionService lifecycle methods - AccessService grant/revoke - CouponService validation and discount calculation - Table::check() validation for each entity - PaymentGateway interface contract ## Standard Reference Coding-Standards requires PHPUnit as CI Gate 2.
jmiller added the enhancement label 2026-06-02 19:52:08 +00:00
Author
Owner

Built: PHPUnit 10.5 setup with bootstrap stubs, 5 test files, 35+ test methods covering RegGuard, Conditional, Privacy, Progress, and Tax.

Built: PHPUnit 10.5 setup with bootstrap stubs, 5 test files, 35+ test methods covering RegGuard, Conditional, Privacy, Progress, and Tax.
jmiller added the pending: testing label 2026-06-02 23:43:08 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoJoomCommunity#43