'configValues' =>
[ 'sw-logo-mobile' =>
[ 'value' => null,
],
],
];
$this->themeRepository->
update([$data],
$this->context
);
/** @var ThemeEntity $updatedTheme */
$updatedTheme =
$this->themeRepository->
search(new Criteria([$theme->
getId()]),
$this->context
)->
first();
static::
assertNotNull($updatedTheme->
getConfigValues());
$themeServiceReturnedConfig =
$this->themeService->
getThemeConfiguration($updatedTheme->
getId(), false,
$this->context
);
static::
assertNotNull($themeServiceReturnedConfig['fields'
]['sw-logo-desktop'
]['value'
]);
static::
assertNull($themeServiceReturnedConfig['fields'
]['sw-logo-mobile'
]['value'
]);
} public function testThemeServiceUpdate(): void
{ $criteria =
new Criteria();
$criteria->
addFilter(new EqualsFilter('technicalName', StorefrontPluginRegistry::BASE_THEME_NAME
));