fix: tests

This commit is contained in:
Torsten Dittmann 2022-08-09 12:45:15 +02:00
parent 641740db77
commit 08ba652464
4 changed files with 2 additions and 8 deletions

View file

@ -83,11 +83,9 @@ abstract class Model
{
$this->rules[$key] = array_merge([
'required' => true,
'type' => '',
'array' => false,
'description' => '',
'default' => null,
'example' => '',
'array' => false
'example' => ''
], $options);
return $this;

View file

@ -29,7 +29,6 @@ class AttributeEmail extends Attribute
'description' => 'String format.',
'default' => APP_DATABASE_ATTRIBUTE_EMAIL,
'example' => APP_DATABASE_ATTRIBUTE_EMAIL,
'required' => true,
])
->addRule('default', [
'type' => self::TYPE_STRING,

View file

@ -30,14 +30,12 @@ class AttributeEnum extends Attribute
'default' => null,
'example' => 'element',
'array' => true,
'required' => true,
])
->addRule('format', [
'type' => self::TYPE_STRING,
'description' => 'String format.',
'default' => APP_DATABASE_ATTRIBUTE_ENUM,
'example' => APP_DATABASE_ATTRIBUTE_ENUM,
'required' => true,
])
->addRule('default', [
'type' => self::TYPE_STRING,

View file

@ -29,7 +29,6 @@ class AttributeURL extends Attribute
'description' => 'String format.',
'default' => APP_DATABASE_ATTRIBUTE_URL,
'example' => APP_DATABASE_ATTRIBUTE_URL,
'required' => true,
])
->addRule('default', [
'type' => self::TYPE_STRING,