$data =
[ 'id' =>
$id,
'taxRate' => 16,
'name' => 'test',
];
$context = Context::
createDefaultContext();
$this->
getContainer()->
get('tax.repository'
)->
create([$data],
$context);
$changelog =
$this->
getVersionData($this->
getContainer()->
get(TaxDefinition::
class)->
getEntityName(),
$id, Defaults::LIVE_VERSION
);
static::
assertCount(0,
$changelog);
$product =
[ 'id' =>
$id,
'productNumber' => Uuid::
randomHex(),
'stock' => 1,
'name' => 'test',
'price' =>
[['currencyId' => Defaults::CURRENCY, 'gross' => 10, 'net' => 8, 'linked' => false
]],
'manufacturer' =>
['id' =>
$id, 'name' => 'test'
],
'tax' =>
['id' =>
$id, 'name' => 'updated', 'taxRate' => 11000
],
];