'customFieldId' =>
$customFieldId,
'customFieldText' =>
$customFieldName,
'customFieldValue' =>
$updateData,
'customFieldSetId' => null,
'customFieldSetText' => null,
'option' =>
$option,
],
],
],
]], Context::
createDefaultContext());
$this->
cancelOrder();
/** @var OrderEntity $order */
$order =
$this->
getContainer()->
get('order.repository'
)->
search(new Criteria([$this->ids->
get('order'
)]), Context::
createDefaultContext())->
first();
$expect =
$option === 'clear' ? null :
[$customFieldName =>
$expectData];
static::
assertEquals($order->
getCustomFields(),
$expect);
} /**
* @return array<string, mixed>
*/