I'm just trying to get into TDD with Cake. I admit, I'm totally new to
TDD so am probably doing something totally wrong!

I have setup all the fixtures with default records defined (rather
than importing data - I don't want to import data because A: there's
too much of it, and B: there are some enum fields which the test suite
doesn't support, so by defining the data in the fixtures I can skip
these fields or treat them as strings). All I'm trying to do at the
moment is successfully run the testAvailabilityInstance, before
creating my own tests. This is what happens:

Empty structure created on test database (correctly defined in config/
database.php)
Run the test on first model: Success
Run the test on the second model (dependant on the first one): Error,
table for first model doesn't exist!

I look in the database, and sure enough the table for the first model
is gone! This happens whether I run the tests one by one or all at
once. Can anyone give me any pointers into what I am looking for?

Thanks

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 [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to