mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-12 06:56:24 +00:00
parent
100595b717
commit
abacf0d14b
2 changed files with 0 additions and 14 deletions
|
@ -609,7 +609,6 @@ class RequestHandlerComponent extends Component {
|
||||||
$controller->layout = $this->ajaxLayout;
|
$controller->layout = $this->ajaxLayout;
|
||||||
return $this->respondAs('html', $options);
|
return $this->respondAs('html', $options);
|
||||||
}
|
}
|
||||||
$controller->ext = '.ctp';
|
|
||||||
|
|
||||||
$pluginDot = null;
|
$pluginDot = null;
|
||||||
$viewClassMap = $this->viewClassMap();
|
$viewClassMap = $this->viewClassMap();
|
||||||
|
|
|
@ -352,19 +352,6 @@ class RequestHandlerComponentTest extends CakeTestCase {
|
||||||
$this->assertEquals(true, $this->Controller->params['isAjax']);
|
$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
|
* testAutoAjaxLayout method
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue