Skip to content

Commit

Permalink
[TASK] Fix test for onlyWebp
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsteeb committed Jul 3, 2024
1 parent 1606bc9 commit a48e51b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/Functional/Frontend/TagRenderingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function simpleImageWithOnlyWebp(): void
$this->importCSVDataSet(__DIR__ . '/Fixtures/simple_image_with_only_webp_option.csv');
$response = $this->executeFrontendSubRequest(new InternalRequest('http://localhost/'));
$body = (string)$response->getBody();
$expected = '<img alt="Testimage 400px width" src="/typo3temp/assets/_processed_/a/2/csm_Picture_cfb567934c.webp" width="400" height="200" loading="lazy" />';
$expected = '<picture><source srcset="typo3temp/assets/_processed_/a/2/csm_Picture_xxx.webp" media="(min-width: 1024px)" /><img alt="Testimage 400px width" src="typo3temp/assets/_processed_/a/2/csm_Picture_xxx.webp" width="400" height="200" loading="lazy" /></picture>';
self::assertStringContainsString($this->anonymouseProcessdImage($expected), $this->anonymouseProcessdImage($body));
}

Expand Down

0 comments on commit a48e51b

Please sign in to comment.