Compare commits

...

2 Commits

Author SHA1 Message Date
philipp lang 55d253aa7b Fixed tests
continuous-integration/drone/push Build is failing Details
2024-04-15 16:23:32 +02:00
philipp lang f84decbb52 Fixed tests 2024-04-15 16:20:29 +02:00
3 changed files with 5 additions and 3 deletions

View File

@ -31,6 +31,7 @@ class FormStoreAction
'mail_top' => 'nullable|string',
'mail_bottom' => 'nullable|string',
'header_image' => 'required|exclude',
'mailattachments' => 'present|array|exclude',
];
}

View File

@ -42,7 +42,8 @@ class FormRequest extends RequestFactory
'registration_until' => $this->faker->dateTime()->format('Y-m-d H:i:s'),
'mail_top' => $this->faker->text(),
'mail_bottom' => $this->faker->text(),
'header_image' => $this->getHeaderImagePayload(str()->uuid() . '.jpg')
'header_image' => $this->getHeaderImagePayload(str()->uuid() . '.jpg'),
'mailattachments' => [],
];
}

View File

@ -46,7 +46,7 @@ class FormtemplateIndexActionTest extends TestCase
'required' => true,
]
])
->assertInertiaPath('data.meta.fields.7', [
->assertInertiaPath('data.meta.fields.9', [
'id' => 'TextField',
'name' => 'Text',
'default' => [
@ -61,7 +61,7 @@ class FormtemplateIndexActionTest extends TestCase
'required' => true,
]
])
->assertInertiaPath('data.meta.fields.8', [
->assertInertiaPath('data.meta.fields.10', [
'id' => 'TextareaField',
'name' => 'Textarea',
'default' => [