I'm trying to figure out testing using fixtures. At this point I
either need to a) figure out how fixtures actually work, b) figure out
a way to get fixtures to work the way I'd expect, or c) give up on
having tests and go back to the "ah, it'll be fine" school of
development. That's pretty much in order of preference and reverse
order of feasibility. So if there's a known-good tutorial on fixtures
for Cake 1.2, I'd really like to read it. What I've tried so far has
only worked hit-or-miss, so I've stopped trusting the online
documentation as far as testing and fixtures are concerned.

My situation is as follows: I have some tests of fairly complicated
controllers that work not-too-badly, but they end up deleting all of
the table data in the test DB (and all of the tables) when they're
done. That wouldn't be a problem, but they data I have in fixtures
doesn't load fast enough. From what I can tell, the data should load
just before the test is run, but it seems that I need to have some
data in place before that point to be able to initialize the test. Is
there a hook function that runs once before all tests have started?
And if so, what would I need to do to get the fixtures to load their
data into the DB at this point?

--
Dwayne Kristjanson

--~--~---------~--~----~------------~-------~--~----~
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