Skip to content

Commit

Permalink
Remove use of non-existent controller property.
Browse files Browse the repository at this point in the history
Clean up after 29ca51a
  • Loading branch information
ADmad committed Mar 14, 2014
1 parent 6f91324 commit 667220a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion src/Controller/Component/RequestHandlerComponent.php
Expand Up @@ -499,7 +499,6 @@ public function renderAs(Controller $controller, $type, $options = array()) {
$controller->layout = $this->ajaxLayout;
return $this->respondAs('html', $options);
}
$controller->ext = '.ctp';

$viewClassMap = $this->viewClassMap();
if (array_key_exists($type, $viewClassMap)) {
Expand Down
Expand Up @@ -326,20 +326,6 @@ public function testDisabling() {
$this->assertEquals(true, $this->Controller->request->params['isAjax']);
}

/**
* testAutoResponseType method
*
* @return void
*/
public function testAutoResponseType() {
$event = new Event('Controller.startup', $this->Controller);
$this->Controller->ext = '.thtml';
$this->Controller->request->params['_ext'] = 'rss';
$this->RequestHandler->initialize($event);
$this->RequestHandler->startup($event);
$this->assertEquals('.ctp', $this->Controller->ext);
}

/**
* testAutoAjaxLayout method
*
Expand Down

0 comments on commit 667220a

Please sign in to comment.