$this->salesChannelContext =
$this->
getContainer()->
get(SalesChannelContextFactory::
class)->
create( Uuid::
randomHex(),
TestDefaults::SALES_CHANNEL,
[ SalesChannelContextService::CUSTOMER_ID =>
$this->
createCustomer(),
SalesChannelContextService::SHIPPING_METHOD_ID =>
$shippingMethodId,
SalesChannelContextService::PAYMENT_METHOD_ID =>
$paymentMethodId,
] );
$this->salesChannelContext->
setRuleIds([$priceRuleId]);
$this->productRepository =
$this->
getContainer()->
get('product.repository'
);
$this->creditNoteRenderer =
$this->
getContainer()->
get(CreditNoteRenderer::
class);
$this->cartService =
$this->
getContainer()->
get(CartService::
class);
$this->documentGenerator =
$this->
getContainer()->
get(DocumentGenerator::
class);
} /**
* @dataProvider creditNoteRendererDataProvider
*
* @param array<int, int> $possibleTaxes
* @param array<int, int> $creditPrices
* @param array<string, int> $additionalConfig
*/