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

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

    function it_throws_exception_when_adding_product_with_different_currencies()
    {
        $this->add(new Product(new SKU("DUMPLIE_SKU_1"), Price::EUR(100), true), 1);
        $this->shouldThrow(InvalidCurrencyException::class)->during('add', [new Product(new SKU("DUMPLIE_SKU_2"), Price::PLN(100), true), 1]);
    }