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 want to test is basically a generic
function that other controllers can call to fetch param values either
sent via post or get or through php://input parameter.

Below is the test I have currently. It's currently incomplete

loadController('App');
 class AppTest extends AppController{
        var $name = 'AppTest';
 }

 class AppControllerTest extends CakeTestCase {

}

I am not sure how to move beyond this point.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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