Support the ongoing development of Laravel.io →
Laravel Testing Dusk

I've written new repository using omnipay for x payment gateway. I've successfully written test cases for repository itself. Now the problem is i am using this repository in my code and it's also working fine.

e.g.

$gateway->purchase($parametersArray)->send(); $response->isSuccessful();

Now i want to write test cases for the above code by mock/any method.

Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

phpspider phpspider Joined 14 Oct 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.