Skip to content
Browse files

Fixing failing tests caused by moving params[ext].

  • Loading branch information...
1 parent 02a6883 commit 5df12a287e47122aff5fe1ae282c9e1b043354d8 @markstory markstory committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/Cake/Test/Case/Controller/Component/RequestHandlerComponentTest.php
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');

0 comments on commit 5df12a2

Please sign in to comment.
Something went wrong with that request. Please try again.