'id' =>
$payload['id'
],
'orderDateTime'
=> (new \
DateTimeImmutable())->
format(Defaults::STORAGE_DATE_TIME_FORMAT
),
],
],
$context);
$result =
$orderRepository->
search( new Criteria([$payload['id'
]]),
$context )->
first();
static::
assertNull($result->
getUpdatedById());
} public function testUpdatedByNotUpdateWithWrongSource(): void
{ /** @var EntityRepository $orderRepository */
$orderRepository =
$this->
getContainer()->
get('order.repository'
);
$context = Context::
createDefaultContext();
$payload =
$this->
createOrderPayload();
$orderRepository->
create([$payload],
$context);