$event =
new EntityWrittenEvent( 'newsletter_recipient',
$writeResults,
Context::
createDefaultContext(),
[],
);
$this->connection->
expects(static::
never())->
method('executeUpdate'
);
$this->salutationSubscriber->
setDefaultSalutation($event);
} public function testDefaultSalutation(): void
{ $newsletterRecipientId = Uuid::
randomHex();
$writeResults =
[new EntityWriteResult('created-id',
['id' =>
$newsletterRecipientId], 'newsletter_recipient', EntityWriteResult::OPERATION_INSERT
)];
$event =
new EntityWrittenEvent( 'newsletter_recipient',
$writeResults,