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

test_creating_product() public method

    function test_creating_product()
    {
        $this->inventoryContext->commandBus()->handle(new CreateProduct('dumplie-sku-1', 20000, 'EUR', false));
        $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);
    }