static::
assertTrue($cart->
errors()->
has('YOU_SHOULD_REALLY_ADD_PRODUCTS'
));
static::
assertTrue($cart->
errors()->
has('ADD_PRODUCTS_OR_GO_AWAY'
));
static::
assertTrue($cart->
errors()->
has('add-same-message'
));
static::
assertTrue($cart->
errors()->
has('MESSAGE_WITH_PARAMETERS'
));
},
];
yield 'Test cart states' =>
[ 'cart-state',
[],
function DCartFacade
$cart): void
{ static::
assertTrue($cart->
states()->
has('my-custom-state'
));
static::
assertFalse($cart->
states()->
has('default-state'
));
},
];
yield 'Discount product price' =>
[ 'discount-product-price',
[ 'p1' =>
new ExpectedPrice(90, 90
),
],
];
}