I'm tired of having to include all of my fixtures when I create a new
test case.  Is there a method to generate all fixtures needed?  I
noticed that he 'cake bake test' command can generate a list of
fixtures.  Is there some way to expose that so when my DB/Model
changes I don't have to modify every single test case.

---------------------------------------------------
App::import('Model', 'Server');

class ServerTestCase extends CakeTestCase {

        //This list is generated by 'cake bake test'
        var $fixtures = array('app.server', 'app.modem',
'app.keyword');

        //Id like somthing like this
       //var $fixtures = $this->generateFixtures('app.server');

        function startTest() {
                $this->Server =& ClassRegistry::init('Server');
        }

        function endTest() {
                unset($this->Server);
                ClassRegistry::flush();
        }

}

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to