I'm trying to do controller testing with laravel 4.1 without touching the database. So im using the repository pattern and I mock the repositories and make them return dummy model objetcs/dummy model collections.
The problem is, the view is trying to use the models relationships etc... And it fails because relationships can't work as the database is empty.
Is there a way to bypass the view rendering as rails do ?
Read about testing environment and mocking in Laravel