ThemeConfigValueAccessor::
buildName('foo'
) );
} public function testGetDisabledFineGrainedCaching(): void
{ $themeConfigLoader =
$this->
createMock(AbstractResolvedConfigLoader::
class);
$themeConfigLoader->
expects(static::
once()) ->
method('load'
) ->
willReturn(['foo' => 'bar'
]);
$themeConfigValueAccessor =
new ThemeConfigValueAccessor( $themeConfigLoader,
false
);
$context =
$this->
createMock(SalesChannelContext::
class);
$themeId = Uuid::
randomHex();
$themeConfigValueAccessor->
trace('all',
function D
) use ($themeConfigValueAccessor,
$context,
$themeId): void
{ static::
assertEquals( 'bar',
$themeConfigValueAccessor->
get('foo',
$context,
$themeId) );