Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing failing tests caused by moving params[ext].

  • Loading branch information...
commit 5df12a287e47122aff5fe1ae282c9e1b043354d8 1 parent 02a6883
@markstory markstory authored
View
6 lib/Cake/Test/Case/Controller/Component/RequestHandlerComponentTest.php
@@ -157,7 +157,7 @@ public function testConstructorSettings() {
*/
public function testInitializeCallback() {
$this->assertNull($this->RequestHandler->ext);
- $this->Controller->request->params['url']['ext'] = 'rss';
+ $this->Controller->request->params['ext'] = 'rss';
$this->RequestHandler->initialize($this->Controller);
$this->assertEqual($this->RequestHandler->ext, 'rss');
}
@@ -222,7 +222,7 @@ public function testDisabling() {
*/
public function testAutoResponseType() {
$this->Controller->ext = '.thtml';
- $this->Controller->request->params['url']['ext'] = 'rss';
+ $this->Controller->request->params['ext'] = 'rss';
$this->RequestHandler->initialize($this->Controller);
$this->RequestHandler->startup($this->Controller);
$this->assertEqual($this->Controller->ext, '.ctp');
@@ -240,7 +240,7 @@ public function testAutoAjaxLayout() {
$this->assertEquals($this->Controller->layout, $this->RequestHandler->ajaxLayout);
$this->_init();
- $this->Controller->request->params['url']['ext'] = 'js';
+ $this->Controller->request->params['ext'] = 'js';
$this->RequestHandler->initialize($this->Controller);
$this->RequestHandler->startup($this->Controller);
$this->assertNotEqual($this->Controller->layout, 'ajax');
Please sign in to comment.
Something went wrong with that request. Please try again.