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

How to mock Mailgun? #900

Closed
cheesegrits opened this issue Apr 14, 2024 · 1 comment
Closed

How to mock Mailgun? #900

cheesegrits opened this issue Apr 14, 2024 · 1 comment

Comments

@cheesegrits
Copy link

Not really an issue, but there's no "Discussions", so ...

Has anyone figured out how to mock the Mailgun service in their own Feature / Unit testing?

I've been staring at the tests in this repo, trying to figure out how I can apply the same approach to my own Pest testing of a Laravel app, but I'm kinda lost.

@oleksandr-mykhailenko
Copy link
Collaborator

Hello
you can use something like https://github.com/rowanhill/wiremock-php
It's a good approach to mock request itself and test all lib functionality, if needed

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

No branches or pull requests

2 participants