Return namiTypes from form
This commit is contained in:
parent
66a76ad2b1
commit
09e3bcab9e
|
@ -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' => '',
|
||||
|
|
|
@ -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', '');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue