static::
assertNotNull($price);
$deliveryPositionCollection->
add( new DeliveryPosition( Uuid::
randomHex(),
$lineItem2,
$lineItem2->
getQuantity(),
$price,
new DeliveryDate(new \
DateTimeImmutable('2020-01-01'
),
new \
DateTimeImmutable('2020-01-01'
)),
) );
static::
assertEquals($expect,
$deliveryPositionCollection->
getVolume());
} public static function volumeDataProvider(): \Generator
{ yield 'test height/width/length: -1, -1, -1' =>
[-1, -1, -1, 0
];
yield 'test height/width/length: -1, -1, 1' =>
[-1, -1, 1, 0
];
yield 'test height/width/length: -1, 1, -1' =>
[-1, 1, -1, 0
];
yield 'test height/width/length: -1, 1, 1' =>
[-1, 1, 1, 0
];
yield 'test height/width/length: 1, -1, -1' =>
[1, -1, -1, 0
];
yield 'test height/width/length: 1, -1, 1' =>
[1, -1, 1, 0
];
yield 'test height/width/length: 1, 1, -1' =>
[1, 1, -1, 0
];