Tuesday, September 27, 2011

Accessing $this->request in Model Cakephp 2.0 Unit Testing

I am trying to build a test for a custom validation in Cakephp 2.0 in the AppModel

The problem is that the validation method uses values from $this->request to compare different fields, i.e check that password == comfirm_password.

How do I  create a test for this, i.e how do I set the value of $this->request?

--
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: