*/ protected array $fixtures = ['app.Polls', 'app.Slides', 'app.SlideOptions', 'app.Responses']; public function testHtmlPageHasCspWithNonceForTheInlineScript(): void { $this->get('/'); $this->assertResponseOk(); $csp = $this->_response->getHeaderLine('Content-Security-Policy'); $this->assertMatchesRegularExpression("#script-src 'self' 'nonce-([A-Za-z0-9+/=]+)'#", $csp); preg_match("#'nonce-([A-Za-z0-9+/=]+)'#", $csp, $m); $this->assertResponseContains('