App\Test\TestCase\Controller\PagesControllerTest::testMissingTemplateInDebug PHP Method

testMissingTemplateInDebug() public method

Test that missing template in debug mode renders missing_template error page
public testMissingTemplateInDebug ( ) : void
return void
    public function testMissingTemplateInDebug()
    {
        Configure::write('debug', true);
        $this->get('/pages/not_existing');
        $this->assertResponseFailure();
        $this->assertResponseContains('Missing Template');
        $this->assertResponseContains('Stacktrace');
        $this->assertResponseContains('not_existing.ctp');
    }