Dumplie\Inventory\Tests\Integration\Application\Generic\ProductTestCase::test_that_removes_product_from_stock PHP Method

test_that_removes_product_from_stock() public method

    function test_that_removes_product_from_stock()
    {
        $this->inventoryContext->commandBus()->handle(new CreateProduct('dumplie-sku-1', 20000, 'EUR', true));
        $this->inventoryContext->commandBus()->handle(new RemoveProductFromStock('dumplie-sku-1'));
        $this->clear();
        $product = $this->inventoryContext->products()->getBySku(new SKU('dumplie-sku-1'));
        $this->assertEquals(new Product(new SKU('dumplie-sku-1'), Price::fromInt(200, 'EUR'), false), $product);
    }