/** * (non-PHPdoc) * @see cake/tests/lib/CakeTestCase#startTest($method) */ public function startTest($method) { parent::startTest($method); $this->Comments = new TestCommentsController(new CakeRequest()); $this->Comments->params = array('named' => array(), 'pass' => array(), 'url' => array()); $this->Comments->constructClasses(); }
/** * (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')); }