I would say that doing some searching would be in order, as I haven't
done model based testing on cake 1.1 in a long time.

maybe these (from a google test for cakephp unit test model)
http://cakebaker.42dh.com/2007/12/04/testing-with-partial-mock-objects/
also I think there are some tests in the core that you might be able
to look at but there has been some stuff written you may just need to
search for it
look here http://groups.google.com/group/cake-php/web/frequent-discussions
and if you are in a hurry and can't find what you need jump on the irc
channel and ask there, many people, most smarter then this old fart

On Feb 16, 2008 10:48 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Ok, I've got the test suite running, but I can't figure out how to
> include my models. I can do simple, non-model based tests ($this-
> >assertTrue(1==1)) and they will pass, but I can't figure out how to
> do any model-based tests. For example, I would like to be able to do
> something like the following:
>
> $this->assertTrue($this->Product->responds()) or
>
> $product =& new Product()
> $this->assertTrue($product->responds())
>
> I can't get either to work. Are there certain files I need to include.
> I tried including the actual model file, but then I get an error b/c
> the app model isn't included. The process of errors continues for each
> subsequent super-class not included.
>
> On Feb 16, 11:25 am, "Samuel DeVore" <[EMAIL PROTECTED]> wrote:
> > you might be looking forhttp://cakeforge.org/projects/testsuite/
> >
> > On Feb 16, 2008 10:19 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > I know there is a built in test suite for Cake 1.2. I have an app
> > > built on 1.1, and I need to do testing for it's models and
> > > controllers. Is there a way to drop in Simpletest in the plugins
> > > directory, or has someone put a plugin together to do this?
> >
> > > Please, someone point me in the right direction! Thanks in advance.
> >
> > --
> > --
> > (the old fart) the advice is free, the lack of crankiness will cost you
> >
> > - its a fine line between a real question and an idiot
> >
> > http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/http://blog.samdevore.com/cakephp-pages/my-cake-wont-bake/http://blog.samdevore.com/cakephp-pages/i-cant-bake/
>
> >
>



-- 
-- 
(the old fart) the advice is free, the lack of crankiness will cost you

- its a fine line between a real question and an idiot

http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/
http://blog.samdevore.com/cakephp-pages/my-cake-wont-bake/
http://blog.samdevore.com/cakephp-pages/i-cant-bake/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to