public function testMissingTemplate() { Configure::write('debug', false); $this->get('/pages/not_existing'); $this->assertResponseError(); $this->assertResponseContains('Error'); }