Spec\Dumplie\Customer\Domain\CartSpec::it_sums_products_with_same_sku PHP Метод

it_sums_products_with_same_sku() публичный Метод

    function it_sums_products_with_same_sku()
    {
        $this->add(new Product(new SKU("DUMPLIE_SKU_1"), Price::fromInt(100, 'EUR'), true), 1);
        $this->add(new Product(new SKU("DUMPLIE_SKU_1"), Price::fromInt(100, 'EUR'), true), 4);
        $this->isEmpty()->shouldReturn(false);
        $this->items()->shouldHaveCount(1);
        $this->items()["DUMPLIE_SKU_1"]->quantity(5);
    }