Summer Sale! All accounts are 50% off this week.

Jorge's avatar
Level 19

How to mock Intervention\Image Image::make(); ?

I need to mock that facade and make sure the methods "make,widen,save" are called. How can this be done?

0 likes
2 replies
CyberList's avatar

You can directly use something

Image::shouldReceive('make')->andThrow(new NotWritableException);

Please or to participate in this conversation.