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/
--~--~---------~--~----~------------~-------~--~----~
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