I'm calling the endpoint that routes to methodIWantToTest like so:
$response = $this->json('GET', 'my/endpoint/');
I'm attaching the code below, any ideas how I can mock the call to the second method? Thanks.
class MyController extends Controller
{
public function methodIWantToTest():
{
//some code to test
$this->methodIWantToMock()
//some more code to test
}
public function methodIWantToMock():
{
//mock this response
}
}