a
controller without using the testAction. I've taken a look at the
testAction function in the Cake code and see how it gets the View
object
and then dumps and returns the viewVars, but as far as I can tell
there
isn't any way to do something similar without using the testAction
function. Is there something in Cake that allows you to access the
viewVars that I'm missing? Or should I be dumping the viewVars from
the
View object manually in my tests? I'm excited to start testing my
controllers with Mock objects, but without having access to the
viewVars
set in the controller I'm finding it difficult to make any assertions
in
my tests to make sure things are being set properly.
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en
No comments:
Post a Comment