Return namiTypes from form

This commit is contained in:
philipp lang 2024-02-21 22:10:26 +01:00
parent 66a76ad2b1
commit 09e3bcab9e
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ class FormResource extends JsonResource
'formtemplate_index' => route('formtemplate.index'),
],
'templates' => FormtemplateResource::collection(Formtemplate::get()),
'namiFields' => NamiType::forSelect(),
'namiTypes' => NamiType::forSelect(),
'default' => [
'description' => [],
'name' => '',

View File

@ -57,7 +57,7 @@ class FormIndexActionTest extends FormTestCase
->assertInertiaPath('data.meta.default.excerpt', '')
->assertInertiaPath('data.meta.default.config', null)
->assertInertiaPath('data.meta.base_url', url(''))
->assertInertiaPath('data.meta.namiFields.0', ['id' => 'Vorname', 'name' => 'Vorname'])
->assertInertiaPath('data.meta.namiTypes.0', ['id' => 'Vorname', 'name' => 'Vorname'])
->assertInertiaPath('data.meta.section_default.name', '');
}