Relative Content

Tag Archive for phplaravelphpunitguzzlemockery

Laravel – Mock single method in a command using PHP UNIT

I’m trying to test a command where there’s a method I want to mock because it makes a call to an external service using Guzzle, but no matter what I try, I can’t seem to mock it successfully. It always calls the original method. Any ideas?
This is my command (relevant code):