$this->productReviewSubscriber->
detectChangeset($event);
foreach ($event->
getCommands() as $command) { static::
assertInstanceOf(ChangeSetAware::
class,
$command);
static::
assertFalse($command->
requiresChangeSet());
} } 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