$this->ids =
new IdsCollection();
} public function testBuildSource(): void
{ $shopIdProvider =
static::
createMock(ShopIdProvider::
class);
$shopIdProvider ->
method('getShopId'
) ->
willReturn($this->ids->
get('shop-id'
));
$appPayloadServiceHelper =
new AppPayloadServiceHelper( static::
createMock(DefinitionInstanceRegistry::
class),
static::
createMock(JsonEntityEncoder::
class),
$shopIdProvider );
$app =
new AppEntity();
$app->
setVersion('1.0.0'
);
$source =
$appPayloadServiceHelper->
buildSource($app, 'https://shopware.com'
);
static::
assertInstanceOf(Source::
class,
$source);