/**
* @internal
*/
#[Package('core')]
class Migration1618900427FixTotalRoundingTest extends TestCase
{ use DatabaseTransactionBehaviour;
use KernelTestBehaviour;
public function testUpdateOrder(): void
{ $ids =
new IdsCollection();
$order =
[ 'id' =>
$ids->
get('order'
),
'itemRounding' =>
json_decode(json_encode(new CashRoundingConfig(2, 0.01, true
), \JSON_THROW_ON_ERROR
), true, 512, \JSON_THROW_ON_ERROR
),
'totalRounding' =>
json_decode(json_encode(new CashRoundingConfig(2, 0.01, true
), \JSON_THROW_ON_ERROR
), true, 512, \JSON_THROW_ON_ERROR
),
'billingAddressId' =>
$ids->
get('billing'
),
'currencyId' => Defaults::CURRENCY,
'salesChannelId' => TestDefaults::SALES_CHANNEL,
'stateId' =>
$this->
getStateId(),
'currencyFactor' => 1,
'orderDateTime' =>
new \
DateTime(),