Who Worked On This

Be the first to upvote
Be the first to downvote


A while back i wrote a blog post on a nifty trick you can use while integration testing. I boils down to the fact that you can provide an mock object to the object manager. The moment the original object is requested by the object manager via dependency injection, the mocked object will be returned. In this blog post i share all the details about it.

Visit Site

Looking for a Magento developer?

Commerce Hero is a better way to find an awesome Magento developer for your next project or full-time hire.

Are you a developer?

Commerce Hero is a better way for you to find great clients and full-time job offers.