You haven't given much to go on! And I'm no testing expert, but...
I think your AppTest would have to fake the environment, i.e provide
values all the fields that your method uses.
Then , you can call your method in the test case, and see if it
returns what you would expect given these dummy val
anyone ??
On Jun 27, 10:32 am, bingo <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I have a function in AppController and I would like to write a test
> case for it. In the past, I had written some simple test cases for
> models but never wrote one for a controller. Can someone help me with
> writing
Hi all,
I have a function in AppController and I would like to write a test
case for it. In the past, I had written some simple test cases for
models but never wrote one for a controller. Can someone help me with
writing a test case function for app controller.
The function (getParams) that I wa