What is the preferred way of testing associations/relations in custom
model methods?
When testing a model I make a test model class that inherits from the
original model class. I use $this->name in all my custom model methods
when I need to get the model name for the conditions. Now if I use
associations in those methods i don't know how to test them. Do I need
to redefine the $hasMany, $hasManyAndBelongsTo & $belongsTo in my test
model or is there another way.

What do you think about it?
--~--~---------~--~----~------------~-------~--~----~
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