Compare commits
2 Commits
8117cfb4f4
...
55d253aa7b
Author | SHA1 | Date |
---|---|---|
|
55d253aa7b | |
|
f84decbb52 |
|
@ -31,6 +31,7 @@ class FormStoreAction
|
||||||
'mail_top' => 'nullable|string',
|
'mail_top' => 'nullable|string',
|
||||||
'mail_bottom' => 'nullable|string',
|
'mail_bottom' => 'nullable|string',
|
||||||
'header_image' => 'required|exclude',
|
'header_image' => 'required|exclude',
|
||||||
|
'mailattachments' => 'present|array|exclude',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,8 @@ class FormRequest extends RequestFactory
|
||||||
'registration_until' => $this->faker->dateTime()->format('Y-m-d H:i:s'),
|
'registration_until' => $this->faker->dateTime()->format('Y-m-d H:i:s'),
|
||||||
'mail_top' => $this->faker->text(),
|
'mail_top' => $this->faker->text(),
|
||||||
'mail_bottom' => $this->faker->text(),
|
'mail_bottom' => $this->faker->text(),
|
||||||
'header_image' => $this->getHeaderImagePayload(str()->uuid() . '.jpg')
|
'header_image' => $this->getHeaderImagePayload(str()->uuid() . '.jpg'),
|
||||||
|
'mailattachments' => [],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@ class FormtemplateIndexActionTest extends TestCase
|
||||||
'required' => true,
|
'required' => true,
|
||||||
]
|
]
|
||||||
])
|
])
|
||||||
->assertInertiaPath('data.meta.fields.7', [
|
->assertInertiaPath('data.meta.fields.9', [
|
||||||
'id' => 'TextField',
|
'id' => 'TextField',
|
||||||
'name' => 'Text',
|
'name' => 'Text',
|
||||||
'default' => [
|
'default' => [
|
||||||
|
@ -61,7 +61,7 @@ class FormtemplateIndexActionTest extends TestCase
|
||||||
'required' => true,
|
'required' => true,
|
||||||
]
|
]
|
||||||
])
|
])
|
||||||
->assertInertiaPath('data.meta.fields.8', [
|
->assertInertiaPath('data.meta.fields.10', [
|
||||||
'id' => 'TextareaField',
|
'id' => 'TextareaField',
|
||||||
'name' => 'Textarea',
|
'name' => 'Textarea',
|
||||||
'default' => [
|
'default' => [
|
||||||
|
|
Loading…
Reference in New Issue