Davide said:
> The main problem is that I don't know how to use the testsuite, so I don't
> know if I have to manually load each component (controller and model) or
> it should be handled manually by the suite.
Actually I've solved in this way[1] and seems to work. I would like to
know if this is the right way to proceed or there's a better way to do
that: something more automatic.
Any developer of the testsuite? :)
Bye
Davide
1. <?php
/*
* app/test/app/controllers/posts_controller.test.php
*/
class PostsControllerTest extends UnitTestCase{
var $posts = null;
function PostsControllerTest($label=false){
parent::UnitTestCase($label);
loadController("posts");
loadModel("post");
$this->posts =& new PostsController();
$this->posts->Post =& new Post();
}
function testIndex(){
$this->posts->index();
}
}
?>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---