mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-12-13 13:53:14 +00:00
fix cs and missing methods
This commit is contained in:
@@ -80,6 +80,11 @@ class PersonIdentifierListApiControllerTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function validate(ExecutionContextInterface $context, PersonIdentifier $identifier, PersonIdentifierDefinition $definition): void {}
|
public function validate(ExecutionContextInterface $context, PersonIdentifier $identifier, PersonIdentifierDefinition $definition): void {}
|
||||||
|
|
||||||
|
public function getDefaultValue(PersonIdentifierDefinition $definition): array
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
$definition1 = new PersonIdentifierDefinition(['en' => 'Label 1'], 'dummy');
|
$definition1 = new PersonIdentifierDefinition(['en' => 'Label 1'], 'dummy');
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ use Chill\PersonBundle\PersonIdentifier\PersonIdentifierEngineInterface;
|
|||||||
use Chill\PersonBundle\PersonIdentifier\PersonIdentifierWorker;
|
use Chill\PersonBundle\PersonIdentifier\PersonIdentifierWorker;
|
||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\Serializer\Exception\UnexpectedValueException;
|
use Symfony\Component\Serializer\Exception\UnexpectedValueException;
|
||||||
use Symfony\Component\Validator\Context\ExecutionContextInterface;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
@@ -46,6 +45,21 @@ class PersonIdentifierWorkerNormalizerTest extends TestCase
|
|||||||
{
|
{
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function isEmpty(PersonIdentifier $identifier): bool
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function validate(PersonIdentifier $identifier, PersonIdentifierDefinition $definition): array
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getDefaultValue(PersonIdentifierDefinition $definition): array
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
$definition = new PersonIdentifierDefinition(label: ['en' => 'SSN'], engine: 'string');
|
$definition = new PersonIdentifierDefinition(label: ['en' => 'SSN'], engine: 'string');
|
||||||
@@ -77,7 +91,20 @@ class PersonIdentifierWorkerNormalizerTest extends TestCase
|
|||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function validate(ExecutionContextInterface $context, PersonIdentifier $identifier, PersonIdentifierDefinition $definition): void {}
|
public function isEmpty(PersonIdentifier $identifier): bool
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getDefaultValue(PersonIdentifierDefinition $definition): array
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function validate(PersonIdentifier $identifier, PersonIdentifierDefinition $definition): array
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
$definition = new PersonIdentifierDefinition(label: ['en' => 'SSN'], engine: 'string');
|
$definition = new PersonIdentifierDefinition(label: ['en' => 'SSN'], engine: 'string');
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ use PHPUnit\Framework\TestCase;
|
|||||||
use Prophecy\Argument;
|
use Prophecy\Argument;
|
||||||
use Prophecy\PhpUnit\ProphecyTrait;
|
use Prophecy\PhpUnit\ProphecyTrait;
|
||||||
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
|
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
|
||||||
use Symfony\Component\Validator\Context\ExecutionContextInterface;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
@@ -73,7 +72,20 @@ class PersonIdRenderingTest extends TestCase
|
|||||||
return $identifier?->getValue()['content'] ?? '';
|
return $identifier?->getValue()['content'] ?? '';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function validate(ExecutionContextInterface $context, PersonIdentifier $identifier, PersonIdentifierDefinition $definition): void {}
|
public function isEmpty(PersonIdentifier $identifier): bool
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function validate(PersonIdentifier $identifier, PersonIdentifierDefinition $definition): array
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getDefaultValue(PersonIdentifierDefinition $definition): array
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
return new PersonIdentifierWorker($engine, $definition);
|
return new PersonIdentifierWorker($engine, $definition);
|
||||||
|
|||||||
@@ -91,6 +91,11 @@ final class ValidIdentifierConstraintValidatorTest extends ConstraintValidatorTe
|
|||||||
{
|
{
|
||||||
return $this->violations;
|
return $this->violations;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getDefaultValue(PersonIdentifierDefinition $definition): array
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
};
|
};
|
||||||
$worker = new PersonIdentifierWorker($engine, $definition);
|
$worker = new PersonIdentifierWorker($engine, $definition);
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ use libphonenumber\PhoneNumber;
|
|||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
|
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
|
||||||
use Symfony\Component\Serializer\Normalizer\AbstractNormalizer;
|
use Symfony\Component\Serializer\Normalizer\AbstractNormalizer;
|
||||||
use Symfony\Component\Validator\Context\ExecutionContextInterface;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
@@ -81,7 +80,15 @@ final class PersonJsonDenormalizerTest extends TestCase
|
|||||||
return '' === $content;
|
return '' === $content;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function validate(ExecutionContextInterface $context, PersonIdentifier $identifier, PersonIdentifierDefinition $definition): void {}
|
public function validate(PersonIdentifier $identifier, PersonIdentifierDefinition $definition): array
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getDefaultValue(PersonIdentifierDefinition $definition): array
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
return new PersonIdentifierWorker($engine, $definition);
|
return new PersonIdentifierWorker($engine, $definition);
|
||||||
|
|||||||
Reference in New Issue
Block a user