Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Stripe to be faked at a facade level #1757

Merged
merged 6 commits into from
May 22, 2024
Merged

Conversation

alecritson
Copy link
Collaborator

@alecritson alecritson commented May 17, 2024

Currently Stripe is faked within it's own tests, which is great but doesn't allow other apps or packages that use it to do the same in their own tests.

This PR moves the fake method into the Facade class (much like how Laravel do) so that it is it available for other developers to utilise.

Usage

\Lunar\Stripe\Facades\Stripe::fake();

This PR will now also rename StripeFacade to Stripe

Copy link

vercel bot commented May 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lunar-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 17, 2024 2:28pm

@alecritson alecritson merged commit bc38f27 into 1.x May 22, 2024
23 checks passed
@alecritson alecritson deleted the feat/stripe-improvements branch May 22, 2024 13:53
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.

None yet

2 participants