new ProductReviewDefinition(),
[ 'id' => 'foo',
],
new EntityExistence(ProductReviewDefinition::ENTITY_NAME,
['id' => 'foo'
], true, false, false,
[]) ),
] );
foreach ($event->
getCommands() as $command) { static::
assertInstanceOf(ChangeSetAware::
class,
$command);
static::
assertFalse($command->
requiresChangeSet());
} $this->productReviewSubscriber->
detectChangeset($event);
foreach ($event->
getCommands() as $command) { static::
assertInstanceOf(ChangeSetAware::
class,
$command);
static::
assertTrue($command->
requiresChangeSet());
} } public function testDetectChangesetWithInvalidCommands(): void
{