Merge pull request #17456 from spencerrlongg/9511-validation-always-fails-on-encrypted-custom-fields
Fixed #9511 - Validation For Encrypted Custom Fields
This commit is contained in:
@@ -93,6 +93,42 @@ class CustomFieldFactory extends Factory
|
||||
});
|
||||
}
|
||||
|
||||
public function encrypt()
|
||||
{
|
||||
return $this->state(function () {
|
||||
return [
|
||||
'field_encrypted' => '1',
|
||||
];
|
||||
});
|
||||
}
|
||||
|
||||
public function alpha()
|
||||
{
|
||||
return $this->state(function () {
|
||||
return [
|
||||
'format' => 'alpha',
|
||||
];
|
||||
});
|
||||
}
|
||||
|
||||
public function numeric()
|
||||
{
|
||||
return $this->state(function () {
|
||||
return [
|
||||
'format' => 'numeric',
|
||||
];
|
||||
});
|
||||
}
|
||||
|
||||
public function email()
|
||||
{
|
||||
return $this->state(function () {
|
||||
return [
|
||||
'format' => 'email',
|
||||
];
|
||||
});
|
||||
}
|
||||
|
||||
public function testCheckbox()
|
||||
{
|
||||
return $this->state(function () {
|
||||
|
||||
Reference in New Issue
Block a user