/** * (non-PHPdoc) */ public function setUp() { parent::setUp(); $this->Request = new CakeRequest(); $this->Response = new CakeResponse(); $this->Request->params = array('named' => array(), 'pass' => array(), 'url' => array()); $this->Comments = new TestCommentsController($this->Request, $this->Response); $this->Comments->constructClasses(); $this->Comments->startupProcess(); $this->Comments->Comments->initialize($this->Comments); $this->Comments->Comment = ClassRegistry::init('Comments.Comment'); debug(ClassRegistry::init('Comments.Comment')); }