/**
* @dataProvider getWithoutAppCases
*/
public function testGetForScriptWithoutApp(Hook
$hook, ?string
$salesChannelId, string
$result): void
{ $this->systemConfigService->
set('test.value', 'generic'
);
$this->systemConfigService->
set('test.value', 'specific', TestDefaults::SALES_CHANNEL
);
$facade =
$this->factory->
factory( $hook,
new Script('test', '',
new \
DateTimeImmutable()) );
static::
assertEquals($result,
$facade->
get('test.value',
$salesChannelId));
} /**
* @return array<string, array<int, mixed>>
*/
public static function getWithoutAppCases(): array
{ $salesChannelContext = Generator::
createSalesChannelContext();