$subscriber =
new MockThemeVariablesSubscriber($this->
getContainer()->
get(SystemConfigService::
class));
$variables =
[ 'sw-color-brand-primary' => '#008490',
'sw-color-brand-secondary' => '#526e7f',
'sw-border-color' => '#bcc1c7',
];
$event =
new ThemeCompilerEnrichScssVariablesEvent($variables,
$this->mockSalesChannelId, Context::
createDefaultContext());
$subscriber->
onAddVariables($event);
$actual =
$event->
getVariables();
$expected =
[ 'sw-color-brand-primary' => '#008490',
'sw-color-brand-secondary' => '#526e7f',
'sw-border-color' => '#bcc1c7',
'mock-variable-black' => '#000000',
'mock-variable-special' => '\'Special value with quotes\'',
];
static::
assertSame($expected,
$actual);
}