use Shopware\Core\Framework\Webhook\AclPrivilegeCollection;
use Shopware\Core\Framework\Webhook\Hookable\HookableEntityWrittenEvent;
/**
* @internal
*/
class HookableEntityWrittenEventTest extends TestCase
{ public function testGetter(): void
{ $entityId = Uuid::
randomHex();
$event = HookableEntityWrittenEvent::
fromWrittenEvent($this->
getEntityWrittenEvent($entityId));
static::
assertEquals('product.written',
$event->
getName());
static::
assertEquals([ [ 'entity' => 'product',
'operation' => 'delete',
'primaryKey' =>
$entityId,
'updatedFields' =>
[],
],
],
$event->
getWebhookPayload());
}