setPostalCodeOfTheCountryToBeRequired example

/** @var CustomerEntity $customer */
        $customer = $this->customerRepository->search($criteria$context->getContext())
            ->get($customerId);

        static::assertInstanceOf(CustomerEntity::class$customer);
        static::assertSame($vatIds$customer->getVatIds());
    }

    public function testHandleViolationExceptionWhenChangeAddress(): void
    {
        $this->setPostalCodeOfTheCountryToBeRequired();

        $customerId = Uuid::randomHex();
        $addressId = Uuid::randomHex();

        $salutationId = $this->getValidSalutationId();
        $paymentMethodId = $this->getValidPaymentMethodId();

        $customers = [
            [
                'id' => $customerId,
                'salesChannelId' => TestDefaults::SALES_CHANNEL,
                
Home | Imprint | This part of the site doesn't use cookies.