/** @var ProductPriceEntity $price */
$price =
$product->
getPrices()->
get($id);
static::
assertSame($ruleA,
$price->
getRuleId());
static::
assertInstanceOf(PriceCollection::
class,
$price->
getPrice());
static::
assertEquals( new Price(Defaults::CURRENCY, 4000, 5000, false
),
$price->
getPrice()->
getCurrencyPrice(Defaults::CURRENCY
) );
static::
assertSame(1,
$price->
getQuantityStart());
static::
assertSame(20,
$price->
getQuantityEnd());
$id3 = Uuid::
randomHex();
$data =
[ 'id' =>
$id,
'productNumber' => Uuid::
randomHex(),
'prices' =>
[ [ 'id' =>
$id3,
'currencyId' => Defaults::CURRENCY,