I don't have strong opinion here - for more high level stuff it's much easier to use DummyDBI than mocking the database interface as you would have to mock quite a lot of things. On the other side, mock gives you more control in given test case.