public function testErrorPage()
 {
     $message = 'Not found!';
     $code = Http::STATUS_NOT_FOUND;
     $params = ['appName' => $this->appName, 'message' => $message, 'code' => $code];
     $response = $this->controller->errorPage($message, $code);
     $this->assertEquals($params, $response->getParams());
     $this->assertEquals('index', $response->getTemplateName());
     $this->assertTrue($response instanceof TemplateResponse);
 }
 public function testErrorPage()
 {
     $message = 'Not found!';
     $code = Http::STATUS_NOT_FOUND;
     $this->mockCookieGet('galleryErrorMessage', $message);
     $response = $this->controller->errorPage($code);
     $this->assertEquals('index', $response->getTemplateName());
     $this->assertTrue($response instanceof TemplateResponse);
     $this->assertEquals($code, $response->getStatus());
     $this->assertContains($message, $response->getParams()['message']);
 }