We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 72f9742 + 0df55d2 commit e0e9e80Copy full SHA for e0e9e80
2 files changed
src/Controller/ErrorController.php
@@ -32,7 +32,7 @@ class ErrorController extends AppController
32
*/
33
public function initialize(): void
34
{
35
- $this->loadComponent('RequestHandler');
+ // Only add parent::initialize() if you are confident your appcontroller is safe.
36
}
37
38
/**
tests/TestCase/Controller/PagesControllerTest.php
@@ -69,8 +69,8 @@ public function testMissingTemplateInDebug()
69
$this->get('/pages/not_existing');
70
71
$this->assertResponseFailure();
72
- $this->assertResponseContains('Template file');
73
- $this->assertResponseContains('Stacktrace');
+ $this->assertResponseContains('Missing Template');
+ $this->assertResponseContains('stack-frames');
74
$this->assertResponseContains('not_existing.php');
75
76
0 commit comments