I'm working on the test part and I have a question regarding how to set up fixtures. Let's say we have 2 tables : USER and PROFILE. Table USER has one foreign key called profile_id.
How is it possible to create fixtures for a user and its profile ? .. so when tests begin, a row is inserted in the USER table, with a profile_id refering to a row in the PROFILE table.
Maybe that's a stupid question, but really I have no idea
Thanks for your help.

Help













