I'm trying testing my application using CakePHP 2.2 RC1, in the certain
action of my controller I need one information of Auth object, in my test I
have created a mock object for the Auth component, but when i call the
method with my mock object become invalid, when i don't put this everything
works fine.
Below the mock object wich dont work
$this->controller->Auth
->staticExpects($this->any())
->method('user')
->with('count_id')
->will($this->returnValue(9));
Thanks for your attention guys.
--
View this message in context:
http://cakephp.1045679.n5.nabble.com/CakePHP-with-method-in-mock-object-don-t-Work-tp5708883.html
Sent from the CakePHP mailing list archive at Nabble.com.
--
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
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php