*/
protected array $fixtures = ['app.Polls', 'app.Slides', 'app.SlideOptions', 'app.Responses'];
public function testAllLayoutsLinkTheIcons(): void
{
[$poll, $token] = $this->createPoll();
$this->createSlide($poll);
// default, present and error layout
foreach (['/', '/admin/' . $token . '/present', '/does-not-exist'] as $url) {
$this->get($url);
// Root-relative, no "img/" prefix (static files live directly in webroot/).
$this->assertResponseRegExp('##', $url);
$this->assertResponseRegExp('##', $url);
$this->assertResponseRegExp('##', $url);
}
}
public function testIconFilesAreValid(): void
{
$svg = (string)file_get_contents(WWW_ROOT . 'favicon.svg');
$this->assertStringContainsString('