CartShippingCostRule example


class CartShippingCostRuleTest extends TestCase
{
    use CartRuleHelperTrait;

    private CartShippingCostRule $rule;

    protected function setUp(): void
    {
        $this->rule = new CartShippingCostRule();
    }

    /** * @dataProvider getRuleTestData */
    public function testIfMatchesCorrectWithShippingCosts(
        CartShippingCostRule $rule,
        CalculatedPrice $calculatedPrice,
        bool $expected
    ): void {
        $cart = $this->createCartDummyWithShippingCosts($calculatedPrice);
        
Home | Imprint | This part of the site doesn't use cookies.