Re: Lost in Testing: Fixtures / testAction
Hi Ryan, thank you for your research that helps me at least with the redirect. What I still don't understand is how the data at /tests/fixtures/somemodel_fixture.php relates to the $this-Somemodel-data Array im Marks tutorial. When do I use which? Do I use both? Thanks for any hints! Anja Am Samstag, 26. Februar 2011, um 00:19:31 schrieb Ryan Schmidt: 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://t rac.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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Lost in Testing: Fixtures / testAction
Hi everybody, I am using Cake 1.3. and am just doing my first steps with testing ever. I had a look at http://book.cakephp.org/#!/view/1210/Testing-controllers and worked through Marks Tutorial http://mark-story.com/posts/view/testing-cakephp-controllers-the-hard-way Since I am completely new to testing and quite stumbling around I am not sure how these two relate to each other. Are those different concepts in testing controllers? 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. Thanks in advance for any help! Anja -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php