Zend Unit Test with database

crazygamerz

New Member
I want to make some unit tests in my project (i am new to testing), but tutorials online seem to show examples testing only simpliest stuff.What I want to test is case when after sending POST to addAction in my SurveyController will result in adding corresponding rows to my survey and question tables (one-to-many).What are the best practices to test database related stuff? Do I create separate db for my test environment and run tests on it? That is the only and right option?
 
Top