Updating test to be correct.

This commit is contained in:
mark_story 2010-11-09 23:55:42 -05:00
parent 76c3e1a112
commit b297bf633d

View file

@ -277,7 +277,7 @@ class RequestHandlerComponentTest extends CakeTestCase {
$this->assertEquals($this->Controller->layout, $this->RequestHandler->ajaxLayout); $this->assertEquals($this->Controller->layout, $this->RequestHandler->ajaxLayout);
$this->_init(); $this->_init();
$this->Controller->request->query['ext'] = 'js'; $this->Controller->request->params['url']['ext'] = 'js';
$this->RequestHandler->initialize($this->Controller); $this->RequestHandler->initialize($this->Controller);
$this->RequestHandler->startup($this->Controller); $this->RequestHandler->startup($this->Controller);
$this->assertNotEqual($this->Controller->layout, 'ajax'); $this->assertNotEqual($this->Controller->layout, 'ajax');