Skip to content

CONV-266: Test credit pack purchase grants credits#235

Merged
menvil merged 1 commit into
developfrom
feature/CONV-266-test-credit-pack-purchase-grants-credits
Jun 2, 2026
Merged

CONV-266: Test credit pack purchase grants credits#235
menvil merged 1 commit into
developfrom
feature/CONV-266-test-credit-pack-purchase-grants-credits

Conversation

@menvil

@menvil menvil commented Jun 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds fakeStripeCheckoutCompletedEvent() global test helper in tests/Support/FakeStripeEvents.php (registered in Pest.php)
  • Adds failing test: CreditPackWebhookHandler::handleCheckoutSessionCompleted() grants 500 credits after checkout event
  • Test fails with "Not implemented yet." — intentional, implementation comes in CONV-267

Test plan

  • Test confirmed failing before implementation
  • composer lint passes

🤖 Generated with Claude Code


Summary by cubic

Adds a feature test and a fake Stripe event helper to confirm that a completed credit pack checkout grants credits (CONV-266). The test triggers CreditPackWebhookHandler::handleCheckoutSessionCompleted with a small pack event and expects the user’s balance to be 500; the fakeStripeCheckoutCompletedEvent() helper is registered in tests/Pest.php.

Written for commit 3e11f66. Summary will update on new commits.

Review in cubic

@coderabbitai

coderabbitai Bot commented Jun 2, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • release

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 9b7a9140-fbde-46cc-a382-d6fce7f11444

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/CONV-266-test-credit-pack-purchase-grants-credits

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@menvil menvil force-pushed the feature/CONV-266-test-credit-pack-purchase-grants-credits branch from e18711e to 3e11f66 Compare June 2, 2026 18:31
@menvil menvil merged commit 52ad2e1 into develop Jun 2, 2026
1 check was pending
@menvil menvil deleted the feature/CONV-266-test-credit-pack-purchase-grants-credits branch June 2, 2026 18:32
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