public function testOnReviewDeleted(): void
{ $event =
new EntityDeletedEvent( ProductReviewDefinition::ENTITY_NAME,
[ new EntityWriteResult( 'id',
['id' => 'id'
],
ProductReviewDefinition::ENTITY_NAME,
EntityWriteResult::OPERATION_DELETE,
new EntityExistence(ProductReviewDefinition::ENTITY_NAME,
['id' => 'id'
], true, false, false,
[]),
new ChangeSet(['customer_id' => 'customer_id'
],
[], true
) ),
// should not trigger update as it has empty changeset
new EntityWriteResult( 'id',
['id' => 'id'
],
ProductReviewDefinition::ENTITY_NAME,
EntityWriteResult::OPERATION_DELETE,
new EntityExistence(ProductReviewDefinition::ENTITY_NAME,
['id' => 'id'
], true, false, false,
[]),
new ChangeSet([],
[], true
) ),
// should not trigger update as it has wrong entity