How to mock methods called inside a controller method while testing laravel controller methods The route defined in web.php is