Skip to content

Commit

Permalink
Fix failing tests caused by differences in 2.x and 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Nov 3, 2012
1 parent d4a31fe commit 0d52a12
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
10 changes: 1 addition & 9 deletions lib/Cake/Controller/ErrorController.php
@@ -1,11 +1,5 @@
<?php
/**
* Error Handling Controller
*
* Controller used by ErrorHandler to render error views.
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
Expand All @@ -14,14 +8,12 @@
*
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @package Cake.Controller
* @since CakePHP(tm) v 2.0
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace Cake\Controller;
use Cake\Routing\Router;

App::uses('AppController', 'Controller');
use Cake\Routing\Router;

/**
* Error Handling Controller
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Test/TestCase/Core/ObjectTest.php
Expand Up @@ -515,7 +515,7 @@ public function testRequestActionGetParameters() {

$result = $this->object->requestAction(
array('controller' => 'request_action', 'action' => 'params_pass'),
array('url' => array('get' => 'value', 'limit' => 5))
array('query' => array('get' => 'value', 'limit' => 5))
);
$this->assertEquals('value', $result->query['get']);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Test/TestCase/View/Helper/FormHelperTest.php
Expand Up @@ -7167,7 +7167,7 @@ public function testFormInputRequiredDetection() {
'Imalsonotrequired2',
'/label',
'input' => array(
'type' => 'text', 'name' => 'data[Contact][imalsonotrequired2]',
'type' => 'text', 'name' => 'Contact[imalsonotrequired2]',
'id' => 'ContactImalsonotrequired2'
),
'/div'
Expand Down

0 comments on commit 0d52a12

Please sign in to comment.