I have never seen a case where mocking a database was a good idea. Stay with me, for whatever short-term gains one gains, you lose in long-term maintainability because everyone does it differently and it's always the most complex code in your codebase.
By clicking “Accept all”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage and assist in our marketing efforts. Check our privacy policies.