$shopIdProviderMock->
expects(static::
once()) ->
method('getShopId'
) ->
willReturn($shopId);
$handshakeFactory =
new HandshakeFactory( $this->shopUrl,
$shopIdProviderMock,
$this->
getContainer()->
get(StoreClient::
class),
Kernel::SHOPWARE_FALLBACK_VERSION
);
$registrator =
new AppRegistrationService( $handshakeFactory,
$this->
getContainer()->
get('shopware.app_system.guzzle'
),
$this->
getContainer()->
get('app.repository'
),
$this->shopUrl,
$this->
getContainer()->
get(ShopIdProvider::
class),
Kernel::SHOPWARE_FALLBACK_VERSION
);
static::
expectException(AppRegistrationException::
class);
$registrator->
registerApp($manifest,
$id,
$secretAccessKey, Context::
createDefaultContext());
}