SendEmailMessageJsonSerializer example

/** * @internal * * @covers \Shopware\Core\Framework\MessageQueue\SendEmailMessageJsonSerializer */
class SendEmailMessageJsonSerializerTest extends TestCase
{
    public function testSerialize(): void
    {
        $serializer = new Serializer(
            [
                new SendEmailMessageJsonSerializer(),
            ],
            [
                new JsonEncoder(null),
            ]
        );
        $withoutSerializer = new Serializer([new ObjectNormalizer()][new JsonEncoder(null)]);

        $sendMail = new SendEmailMessage(
            new RawMessage('test'),
            null
        );

        
Home | Imprint | This part of the site doesn't use cookies.