use Shopware\Core\Framework\Uuid\Uuid;
/**
* @internal
*/
class EntityWrittenEventSerializationTest extends TestCase
{ use IntegrationTestBehaviour;
public function testEventCanBeSerialized(): void
{ $container =
$this->
writeTestProduct();
$event =
$container->
getEventByEntityName(ProductDefinition::ENTITY_NAME
);
$encoded =
json_encode($event, \JSON_THROW_ON_ERROR
);
static::
assertNotFalse($encoded);
static::
assertJson($encoded);
$encoded =
json_encode($container, \JSON_THROW_ON_ERROR
);
static::
assertNotFalse($encoded);
static::
assertJson($encoded);
}