updating controller test. closes #5029, if you change the content type with request handler in a test debug must be set to 0, see line 630 of RequestHandler. Fixed duration handling for core cache settings when debug equal to 1

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7309 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2008-07-04 13:26:43 +00:00
parent 23dac08d77
commit 3ab12a868f
2 changed files with 2 additions and 1 deletions

View file

@ -656,7 +656,7 @@ class Configure extends Object {
}
$duration = $cache['settings']['duration'];
if (Configure::read() > 1) {
if (Configure::read() >= 1) {
$duration = 10;
}

View file

@ -714,6 +714,7 @@ class ControllerTest extends CakeTestCase {
* @return void
*/
function testRequestHandlerPrefers(){
Configure::write('debug', 2);
$Controller =& new Controller();
$Controller->components = array("RequestHandler");
$Controller->modelClass='ControllerPost';