setDefaultSalutation example



        $event = new EntityWrittenEvent(
            'newsletter_recipient',
            $writeResults,
            Context::createDefaultContext(),
            [],
        );

        $this->connection->expects(static::never())->method('executeUpdate');

        $this->salutationSubscriber->setDefaultSalutation($event);
    }

    public function testDefaultSalutation(): void
    {
        $newsletterRecipientId = Uuid::randomHex();

        $writeResults = [new EntityWriteResult('created-id', ['id' => $newsletterRecipientId], 'newsletter_recipient', EntityWriteResult::OPERATION_INSERT)];

        $event = new EntityWrittenEvent(
            'newsletter_recipient',
            $writeResults,
            


        $event = new EntityWrittenEvent(
            'order_address',
            $writeResults,
            Context::createDefaultContext(),
            [],
        );

        $this->connection->expects(static::never())->method('executeUpdate');

        $this->salutationSubscriber->setDefaultSalutation($event);
    }

    public function testDefaultSalutation(): void
    {
        $orderAddressId = Uuid::randomHex();

        $writeResults = [new EntityWriteResult('created-id', ['id' => $orderAddressId], 'order_address', EntityWriteResult::OPERATION_INSERT)];

        $event = new EntityWrittenEvent(
            'order_address',
            $writeResults,
            


        $event = new EntityWrittenEvent(
            'customer',
            $writeResults,
            Context::createDefaultContext(),
            [],
        );

        $this->connection->expects(static::never())->method('executeUpdate');

        $this->salutationSubscriber->setDefaultSalutation($event);
    }

    public function testDefaultSalutation(): void
    {
        $customerId = Uuid::randomHex();

        $writeResults = [new EntityWriteResult('created-id', ['id' => $customerId], 'customer', EntityWriteResult::OPERATION_INSERT)];

        $event = new EntityWrittenEvent(
            'customer',
            $writeResults,
            
Home | Imprint | This part of the site doesn't use cookies.