$expected =
$styles . MockThemeCompilerConcatenatedSubscriber::STYLES_CONCAT;
static::
assertEquals($expected,
$actual);
} public function testConcanatedScriptsEventPassThrough(): void
{ $subscriber =
new MockThemeCompilerConcatenatedSubscriber();
$scripts = 'console.log(\'foo\');';
$event =
new ThemeCompilerConcatenatedScriptsEvent($scripts,
$this->mockSalesChannelId
);
$subscriber->
onGetConcatenatedScripts($event);
$actual =
$event->
getConcatenatedScripts();
$expected =
$scripts . MockThemeCompilerConcatenatedSubscriber::SCRIPTS_CONCAT;
static::
assertEquals($expected,
$actual);
} public function testCompileWithoutAssets(): void
{ $resolver =
$this->
createMock(ThemeFileResolver::
class);