use DataAbstractionLayerFieldTestBehaviour;
use IntegrationTestBehaviour;
public function testUpdatedByNotUpdateWithWrongScope(): void
{ /** @var EntityRepository $orderRepository */
$orderRepository =
$this->
getContainer()->
get('order.repository'
);
$userId =
$this->
fetchFirstIdFromTable('user'
);
$context =
$this->
getAdminContext($userId);
$payload =
$this->
createOrderPayload();
$orderRepository->
create([$payload],
$context);
$orderRepository->
update([ [ 'id' =>
$payload['id'
],
'orderDateTime'
=> (new \
DateTimeImmutable())->
format(Defaults::STORAGE_DATE_TIME_FORMAT
),
],
],
$context);
$result =
$orderRepository->
search( new Criteria([$payload['id'
]]),