public function testIndexWithIncompatibleAppInstalled()
 {
     // Message defined in the method itself
     $message = 'You need to disable the Pictures app before being able to use the Gallery+ app';
     $redirectUrl = '/index.php/app/error';
     $this->mockUrlToErrorPage(Http::STATUS_INTERNAL_SERVER_ERROR, $redirectUrl);
     $this->mockBadAppEnabled('gallery');
     /** @type RedirectResponse $response */
     $response = $this->controller->index();
     $this->assertEquals($redirectUrl, $response->getRedirectURL());
     $this->assertEquals(Http::STATUS_TEMPORARY_REDIRECT, $response->getStatus());
     $this->assertEquals($message, $response->getCookies()['galleryErrorMessage']['value']);
 }
 public function testCspForFontsContainsData()
 {
     $response = $this->controller->index();
     $this->assertContains("font-src 'self' data:", $response->getHeaders()['Content-Security-Policy']);
 }