$themeService =
static::
createMock(ThemeService::
class);
$themeService->
expects(static::
once()) ->
method('compileTheme'
) ->
with($salesChannelId,
$themeId,
static::
anything(), null, !
$keepAssetsOption);
$themeProvider =
static::
createMock(AbstractAvailableThemeProvider::
class);
$themeProvider->
expects(static::
once()) ->
method('load'
) ->
with(static::
anything(), false
) ->
willReturn([$salesChannelId =>
$themeId]);
$commandTester =
new CommandTester(new ThemeCompileCommand($themeService,
$themeProvider));
$commandTester->
execute(['--keep-assets' =>
$keepAssetsOption]);
$commandTester->
assertCommandIsSuccessful();
} /**
* @dataProvider getOptionsValue
*/
public function testItPassesActiveOnlyFlagCorrectly(bool
$activeOnly): void
{ $themeService =
static::
createMock(ThemeService::
class);