[eluser]aspir[/eluser]
I've been using SimpleTester with my in-development CI app for a month or two now and I find that it's very helpful. That being said, I can't seem to find a way to deal with a situation such as this:
I'm unit testing Object A. Object A makes use of a model (and loads it using $this->load->model()). That model accesses the database and I don't want it to during test. Can I somehow make it so CI's load->model() method returns my mock implementation during testing? I'm not quite sure how to attack this short of including and instantiating my models without the CI methods. Any ideas?