DEV Community

loading...

Discussion on: Implement CRUD with Laravel Service-Repository Pattern

Collapse
davidjije profile image
David Jijelava

Hi.
Thank you for this clear and great post.
I was wondering about this pattern and your instructions are so helpful.
But there is one thing. I am wondering how can i write unit tests in this pattern?
Should I test Repository methods? or Service methods? Which and how?

Collapse
safventure profile image
Saf Venture Author

Sorry, I haven't tried that.