$themeId = Uuid::
randomHex();
$this->themeSalesChannelRepositoryMock->
expects(static::
once())->
method('upsert'
)->
with( [[ 'themeId' =>
$themeId,
'salesChannelId' => TestDefaults::SALES_CHANNEL,
]],
$this->context
);
$this->eventDispatcherMock->
expects(static::
once())->
method('dispatch'
)->
with( new ThemeAssignedEvent($themeId, TestDefaults::SALES_CHANNEL
) );
$this->themeCompilerMock->
expects(static::
once())->
method('compileTheme'
)->
with( TestDefaults::SALES_CHANNEL,
$themeId,
static::
anything(),
static::
anything(),
true,
$this->context
);