'name' => 'Test',
'price' =>
[['currencyId' => Defaults::CURRENCY, 'gross' => 10, 'net' => 9, 'linked' => false
]],
'manufacturer' =>
['id' =>
$this->ids->
create('manufacturerId'
), 'name' => 'test'
],
'tax' =>
['id' =>
$this->ids->
create('tax'
), 'taxRate' => 17, 'name' => 'with id'
],
'active' => true,
'visibilities' =>
[ ['salesChannelId' =>
$this->ids->
get('sales-channel'
), 'visibility' => ProductVisibilityDefinition::VISIBILITY_ALL
],
],
],
], Context::
createDefaultContext());
$cart =
new Cart($this->ids->
get('token'
));
$cart->
add(new LineItem($this->ids->
create('productId'
), LineItem::PRODUCT_LINE_ITEM_TYPE,
$this->ids->
get('productId'
)));
$this->cartPersister->
save($cart,
$this->salesChannelFactory->
create($this->ids->
get('token'
),
$this->ids->
get('sales-channel'
)));
// Check
$this->browser
->
request( 'GET',
'/store-api/checkout/cart',
[ ] );