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.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community