mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
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:
parent
23dac08d77
commit
3ab12a868f
2 changed files with 2 additions and 1 deletions
|
@ -656,7 +656,7 @@ class Configure extends Object {
|
|||
}
|
||||
|
||||
$duration = $cache['settings']['duration'];
|
||||
if (Configure::read() > 1) {
|
||||
if (Configure::read() >= 1) {
|
||||
$duration = 10;
|
||||
}
|
||||
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Add table
Reference in a new issue