ianmcn wrote:
> 
> 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 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
> 
> 
I was facing the same issue you are facing and I am glade I found that
someone else was facing the same problem. I do not know if this will be
helpful or not, but i posted possible solution on my 
http://www.irisoftonline.com/cakephp-testing-errors-database-table-not-found-enum-type-fields-ignored
blog .
-- 
View this message in context: 
http://old.nabble.com/Test-suite-deleting-tables-then-complaining-that-they%27re-missing%21-tp26748096p26933933.html
Sent from the CakePHP mailing list archive at Nabble.com.

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