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.
An international Magento developer event, focused on 1 thing: Automated software testing.