Friday, December 31, 2010

Re: Any Test on Test Suite?

on lines 16 & 17 of Mark Storys test he imports parts of the app required to perform the test

on line 60 the AclComp is used to generate a mock instance for use with the testcase created on line 67

--

by importing I meant `App::import`
http://book.cakephp.org/view/1644/App

On 31 December 2010 16:46, John Maxim <googol6@gmail.com> wrote:

Actually I don't get what you mean by importing .. is that a script
generally used?..

Regards,
Maxim, John.

On Dec 28 2010, 1:01 pm, Sam Sherlock <sam.sherl...@gmail.com> wrote:
> App::import the parts of cake needed by your tests
>
> Seehttps://github.com/markstory/cakephp_menu_component/blob/master/tests...
>
>  - S
>
> On 28 December 2010 04:54, John Maxim <goog...@gmail.com> wrote:
>
> > I went through Testing athttp://book.cakephp.org/view/1196/Testing
>
> > Can we create any kind of test in that suite? Are there limitations to
> > what we are able to test ? or what we can't test on the Test Suite?
>
> > Let's say I want to test ACL scripts on the Test Suite?
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd 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<cake-php%2Bunsubscribe@googlegroups.com>For more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=en

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

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: