Friday, February 25, 2011

Re: Lost in Testing: Fixtures / testAction

On Feb 25, 2011, at 07:06, acl68 wrote:

> Also: does anybody know what happened to the link in "4.7.6.3 Pitfalls"
> http://book.cakephp.org/#!/view/1213/Pitfalls in the cookbook? The Link to the
> mentioned tickets doesn't work. So I am not sure how to proceed, because
> nearly all my methods use redierts after the did what they should do.

Your link did not work for me, but I used the search field and typed in "pitfalls" and it got me to

http://book.cakephp.org/view/1213/Pitfalls

which did work. All it says is:

"If you use testAction to test a method in a controller that does a redirect, your test will terminate immediately, not yielding any results.

"See https://trac.cakephp.org/ticket/4154 for a possible fix."


And I see trac.cakephp.org no longer works. I know the team has moved from Trac to Lighthouse for issue tracking, and as I understand it, has not necessarily copied all old issues from Trac to Lighthouse.

Here is a cached version of that ticket:

http://webcache.googleusercontent.com/search?q=cache:hK6fIPD0bqgJ:https://trac.cakephp.org/ticket/4154

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