$taxProvider =
[ 'id' =>
$this->ids->
get('tax-provider'
),
'active' => true,
'priority' => 1,
'identifier' => TestConstantTaxRateProvider::
class, // 7% tax rate
'availabilityRule' =>
[ 'id' =>
$this->ids->
get('rule'
),
'name' => 'test',
'priority' => 1,
'conditions' =>
[ ['type'
=> (new AlwaysValidRule())->
getName()],
],
],
];
$this->taxProviderRepository->
create([$taxProvider], Context::
createDefaultContext());
$this->
createCustomerAndLogin();
$this->browser
->
request( Request::METHOD_POST,
'/store-api/checkout/cart/line-item',
[