/**
* Creates a new absolute promotion in the database.
*/
private function createTestFixtureAbsolutePromotion(string
$promotionId, string
$code, float
$value, ContainerInterface
$container, string
$scope = PromotionDiscountEntity::SCOPE_CART
): string
{ /** @var EntityRepository $promotionRepository */
$promotionRepository =
$container->
get('promotion.repository'
);
$context =
$container->
get(SalesChannelContextFactory::
class)->
create(Uuid::
randomHex(), TestDefaults::SALES_CHANNEL
);
$this->
createPromotion( $promotionId,
$code,
$promotionRepository,
$context );
return $this->
createTestFixtureDiscount($promotionId, PromotionDiscountEntity::TYPE_ABSOLUTE,
$scope,
$value, null,
$container,
$context);
} /**
* Creates a new percentage promotion in the database.
*/