On Feb 5, 2008 6:36 PM, Robby Anderson <[EMAIL PROTECTED]> wrote: > > > I've been working with the cake unit tests, and have gotten them to > work (with a fair amount of help) on simple models and other simple > functionality, but I can't seem to get them to work on more > complicated associations, or in any case where a model calls directly > creates/calls another model inside a method. > > Given what I've seen in the tutorials and looking through the test > code base, I'm not sure I see an easy way to test using associations > without redefining the associations in my test models. Is there > something really obvious I'm missing? >
Robby, I touched on this topic during my talk today at CakeFest. If you are a user of the Cake console you can use the 'cake console' command to test out your models, including binding and unbinding associations for testing purposes, and then seeing what kind of result sets you get in your queries. Hope that helps. -- Chris Hartjes Internet Loudmouth Motto for 2008: "Moving from herding elephants to handling snakes..." @TheKeyBoard: http://www.littlehart.net/atthekeyboard --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
