method does not exist on this mock object - Laravel , Mockery
问题 i'm trying to test a simple class. I'm following this tutorial( http://code.tutsplus.com/tutorials/testing-laravel-controllers--net-31456 ). I have this error, while running tests: Method Mockery_0_App_Interfaces_MealTypeRepositoryInterface::getValidator() does not exist on this mock object Im using repository structure. So, my controller calls repository and that returns Eloquent's response. I'm relatively new in php and laravel. And I've started learning to test a few days ago, so I'm sorry