title: TDD in Codeigniter: how to mock the database?
body: <p>I am trying TDD in Codeigniter and I'm stuck. I am using TOAST and want to test a simple feature without touching the database...</p>
  
  <pre><code>function test_get_products_by_user_id()
  {
  }
  </code></pre>
  
  <p>How to create a mock of the database for a case like this? I do not want to query the database for such tests.</p>