Skip to content

Commit e0e9e80

Browse files
authored
Merge pull request #957 from cakephp/fix-errorcontroller
Fix error controller
2 parents 72f9742 + 0df55d2 commit e0e9e80

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/Controller/ErrorController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class ErrorController extends AppController
3232
*/
3333
public function initialize(): void
3434
{
35-
$this->loadComponent('RequestHandler');
35+
// Only add parent::initialize() if you are confident your appcontroller is safe.
3636
}
3737

3838
/**

tests/TestCase/Controller/PagesControllerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ public function testMissingTemplateInDebug()
6969
$this->get('/pages/not_existing');
7070

7171
$this->assertResponseFailure();
72-
$this->assertResponseContains('Template file');
73-
$this->assertResponseContains('Stacktrace');
72+
$this->assertResponseContains('Missing Template');
73+
$this->assertResponseContains('stack-frames');
7474
$this->assertResponseContains('not_existing.php');
7575
}
7676

0 commit comments

Comments
 (0)