Friday, August 19, 2011

Re: How to create mock object from a Model's Behavior?

Kevin:

I haven't written a lot of Model / Behavior tests, however, I believe
that you might want to test your model with the behavior enabled.

You can also write tests of *just* a behavior by itself.

Regards,
David

On Aug 18, 9:10 am, David Kullmann <kullmann.da...@gmail.com> wrote:
> You could they creating it with the same process to create any mock
> object and then attaching it with "$Model->Behaviors->attach()"
>
> On Aug 16, 11:53 pm, Ken Vu <k...@gladeye.co.nz> wrote:
>
>
>
>
>
>
>
> > Is it even possible?

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: