test: add tests for UsageBillingService #7
Labels
No labels
P1
P2
P3
PHP
agent-ready
bug
clotho
discovery
docs
refactor
review
security
testing
athena
athena-gemini
audit
clotho
clotho-gemini
codex
darbs-claude
security
wiki
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: core/php-commerce#7
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Issue
Services/UsageBillingService.phphas no dedicated test file.Service Methods
The service handles metered/usage-based billing:
recordUsage()- Track usage eventscalculateUsageCharges()- Compute charges for billing periodgetUsageForPeriod()- Retrieve usage statisticssyncToStripe()- Push usage data to StriperesetUsage()- Clear usage counters on renewalRequired Tests
ResetUsageOnRenewal)Test Location
tests/Feature/UsageBillingServiceTest.phpCreated by discovery scan (issue #2)