On Aug 25, 8:52 am, cdamian <[EMAIL PROTECTED]> wrote:
> I also have problems with testAction() and fixtures, somehow it does
> not seem to be quite ready yet.
>
> On Aug 25, 1:50 pm, JuergenRiemer <[EMAIL PROTECTED]> wrote:
>
> > One thing I have to add: if I call the methods directly like
> > $this->UsersController->display();
> > the mocking works like a champ...
> > yet in that case: how to easily pass on POST data to "display"?

I don't think that testAction was ever intended to work well with mock
objects.  Simply due to the fact that it dispatches the provided url.
Unless your testAction is 'visiting' a Subclassed test controller,
that uses the Mock object.  A new controller instance that is
different from the instance already created in your setUp() is used
for the testAction process.  This new instance is blind to the
existence of your mock object, and simply uses the real object.

As for testAction with fixtures.  There were a few bugs related to
this, and they have been fixed in the newest svn head. Give that a try
if you are having on going problems with testAction and fixtures.

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