File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed
Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 2020use TYPO3 \CMS \Core \Cache \Frontend \FrontendInterface ;
2121use TYPO3 \CMS \Core \Http \ApplicationType ;
2222use TYPO3 \CMS \Core \Page \PageRenderer ;
23- use TYPO3 \CMS \Frontend \Page \PageInformation ;
2423
2524/**
2625 * Hooks into PageRenderer to add CSS / JS / SVG files
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public function buildXmlTagBuildsXmlTagForExistingFile(): void
2525 $ assetCollector = new AssetCollector ();
2626 $ assetCollector ->addXmlFile ('EXT:assetcollector/Resources/Public/Icons/Extension.svg ' );
2727 $ content = $ assetCollector ->buildInlineXmlTag ();
28- self ::assertStringContainsString ('<title>EXT:assetcollector</title ' , $ content );
28+ self ::assertStringContainsString ('<rect id="BG-Color" width="64" height="64" rx="4" ry="4" style="fill:#ba9af6"></rect> ' , $ content );
2929 }
3030
3131 #[Test]
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public function scriptTagForInlineCssIsRendered(): void
3030 self ::assertStringContainsString ($ expected , $ body );
3131 $ expected = '<svg class="tx_assetcollector" ' ;
3232 self ::assertStringContainsString ($ expected , $ body );
33- $ expected = '<rect y="0.3" class="st0" width="256" height="256 "></rect> ' ;
33+ $ expected = '<rect id="BG-Color" width="64" height="64" rx="4" ry="4" style="fill:#ba9af6 "></rect> ' ;
3434 self ::assertStringContainsString ($ expected , $ body );
3535 }
3636
@@ -44,7 +44,7 @@ public function scriptTagForInlineCssIsRenderedWithNoBodyTag(): void
4444 self ::assertStringContainsString ($ expected , $ body );
4545 $ expected = '<svg class="tx_assetcollector" ' ;
4646 self ::assertStringContainsString ($ expected , $ body );
47- $ expected = '<rect y="0.3" class="st0" width="256" height="256 "></rect> ' ;
47+ $ expected = '<rect id="BG-Color" width="64" height="64" rx="4" ry="4" style="fill:#ba9af6 "></rect> ' ;
4848 self ::assertStringContainsString ($ expected , $ body );
4949 }
5050}
You can’t perform that action at this time.
0 commit comments