class PromotionItemBuilderPlaceholderTest extends TestCase
{ /**
* This test verifies that the immutable LineItem Type from
* the constructor is correctly used in the LineItem.
*
* @group promotions
*/
public function testLineItemType(): void
{ $builder =
new PromotionItemBuilder();
$item =
$builder->
buildPlaceholderItem('CODE-123'
);
static::
assertEquals(PromotionProcessor::LINE_ITEM_TYPE,
$item->
getType());
} /**
* This test verifies that we get a correct percentage price of 0
* for our placeholder item. This is important to avoid any wrong
* calculations or side effects that could modify the cart amount.
*
* @group promotions
*/