Saturday, July 7, 2012

How to load all fixture in CakeTestCase ?

Do it end up $fixtures = array('User, 'Image', .... all model);
Because all models relate to others model. When you have a new model then all test will fail because new model relate with a exist model.

How to solve this problem, i want a way to load all fixtures ?

My solve , I created abstract class AppCakeTestCase extends CakeTestCase , load all fixtures in app/Testsuite. But i want to a way better this way.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate