$langId );
} public function testUpdatingPromotionAfterUpdateProductLineItem(): void
{ $salesChannelContext =
$this->
getContainer()->
get(SalesChannelContextFactory::
class)->
create(Uuid::
randomHex(), TestDefaults::SALES_CHANNEL
);
$productId = Uuid::
randomHex();
$promotionCode = 'BF99';
$this->
createTestFixtureProduct($productId, 119, 19,
$this->
getContainer(),
$salesChannelContext);
$browser =
$this->
createCart(TestDefaults::SALES_CHANNEL
);
$this->
addProduct($browser, TestDefaults::SALES_CHANNEL,
$productId);
// Save promotion to database
$this->
createTestFixturePercentagePromotion(Uuid::
randomHex(),
$promotionCode, 100, null,
$this->
getContainer());
// Add promotion code to our cart (not existing in DB)
$this->
addPromotionCodeByAPI($browser, TestDefaults::SALES_CHANNEL,
$promotionCode);