/**
* @var ValidatorInterface&MockObject
*/
protected ValidatorInterface
$validator;
protected function setUp(): void
{ $definitionRegistry =
$this->
createMock(DefinitionInstanceRegistry::
class);
$this->validator =
$this->
createMock(ValidatorInterface::
class);
$this->systemConfigService =
$this->
createMock(SystemConfigService::
class);
$this->serializer =
new PasswordFieldSerializer($this->validator,
$definitionRegistry,
$this->systemConfigService
);
} public function testEncodeNotPasswordField(): void
{ if (Feature::
isActive('v6.6.0.0'
)) { static::
expectException(DataAbstractionLayerException::
class);
} else { static::
expectException(InvalidSerializerFieldException::
class);
} $existence =
new EntityExistence('product',
[], false, false, false,
[]);