From abacf0d14ba76c099f2ab6b30d9999a9696fbcaa Mon Sep 17 00:00:00 2001 From: ADmad Date: Sun, 16 Mar 2014 20:09:08 +0530 Subject: [PATCH] Remove setting of Controller::$ext by RequestHandler. Closes #3022 --- .../Component/RequestHandlerComponent.php | 1 - .../Component/RequestHandlerComponentTest.php | 13 ------------- 2 files changed, 14 deletions(-) diff --git a/lib/Cake/Controller/Component/RequestHandlerComponent.php b/lib/Cake/Controller/Component/RequestHandlerComponent.php index 723606284..47cd9533b 100644 --- a/lib/Cake/Controller/Component/RequestHandlerComponent.php +++ b/lib/Cake/Controller/Component/RequestHandlerComponent.php @@ -609,7 +609,6 @@ class RequestHandlerComponent extends Component { $controller->layout = $this->ajaxLayout; return $this->respondAs('html', $options); } - $controller->ext = '.ctp'; $pluginDot = null; $viewClassMap = $this->viewClassMap(); diff --git a/lib/Cake/Test/Case/Controller/Component/RequestHandlerComponentTest.php b/lib/Cake/Test/Case/Controller/Component/RequestHandlerComponentTest.php index 13ccaa0fd..6688ad565 100644 --- a/lib/Cake/Test/Case/Controller/Component/RequestHandlerComponentTest.php +++ b/lib/Cake/Test/Case/Controller/Component/RequestHandlerComponentTest.php @@ -352,19 +352,6 @@ class RequestHandlerComponentTest extends CakeTestCase { $this->assertEquals(true, $this->Controller->params['isAjax']); } -/** - * testAutoResponseType method - * - * @return void - */ - public function testAutoResponseType() { - $this->Controller->ext = '.thtml'; - $this->Controller->request->params['ext'] = 'rss'; - $this->RequestHandler->initialize($this->Controller); - $this->RequestHandler->startup($this->Controller); - $this->assertEquals('.ctp', $this->Controller->ext); - } - /** * testAutoAjaxLayout method *